Add more check to correctly get all dependency package on build
This commit is contained in:
1 parent
ca28349a07
commit
e2be326250
2 files changed
+27
-7
No files matched your search
+17
-1
@@ -91,7 +91,23 @@ def get_all_tags_from_docker():
|
||||
for release in j:
|
||||
print(release)
|
||||
|
||||
|
||||
|
||||
def get_linux_deps_file(tag_name: str) -> str | None:
|
||||
"""Find the `install_linux_packages.py` about the blender version tested."""
|
||||
base = r'https://projects.blender.org/api/v1/repos/blender/blender/raw'
|
||||
links = [
|
||||
rf'{base}/build_files/build_environment/install_linux_packages.py?ref=v{tag_name}',
|
||||
rf'{base}/build_files/linux/install_linux_packages.py?ref=v{tag_name}'
|
||||
]
|
||||
|
||||
for url in links:
|
||||
r = requests.get(url)
|
||||
if r.status_code == 200:
|
||||
return url
|
||||
|
||||
return None
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
print('Clean docker')
|
||||
clean_all_dockers()
|
||||
|
||||
Reference in new issue
Block a user