Add project-tools #142

Merged
Francesco Siddi merged 26 commits from ZedDB/blender-studio-pipeline:project-helper-tools into main 2023-08-31 20:33:04 +02:00

This is a set of scripts that makes it easier to deploy Blender into a shared folder on a network drive.

Most of the functionality should be working, but the downloading of addons from this repository is not working as the main.zip does not contain git lfs files. This is consistent with how github and gitlab functions as well.
So that means that if we want to track live repos that contains git lfs files, we will have to also depend on git + git-lfs in our scripts.

This is a set of scripts that makes it easier to deploy Blender into a shared folder on a network drive. Most of the functionality should be working, but the downloading of addons from this repository is not working as the `main.zip` does not contain git lfs files. This is consistent with how github and gitlab functions as well. So that means that if we want to track live repos that contains git lfs files, we will have to also depend on git + git-lfs in our scripts.
Sebastian Parborg added 18 commits 2023-08-09 18:00:35 +02:00
Francesco Siddi added 1 commit 2023-08-29 15:55:02 +02:00
Francesco Siddi added 4 commits 2023-08-30 02:21:56 +02:00
Author
Member

#!/usr/bin/env python3.11

Don't hard code the python version like this unless there is a very good reason to do so.

Now you have made it so those scripts will only run if the python version on the computer is exactly 3.11, which doesn't seem to be your intention as you already added a "version < 3.11" check and not "version == 3.11".

If the system default python3 version is less than the required version, then you can still run the scripts by doing python3.11 ./script.py. (Or you can also solve this by changing the default python3 version that is used on the system)

We can and probably should instead look and see if the 3.11 specific features can't be written in a more backwards compatible way so we can run it with python 3.10 or older if this is a bigger problem.

> #!/usr/bin/env python3.11 Don't hard code the python version like this unless there is a *very* good reason to do so. Now you have made it so those scripts will only run if the python version on the computer is exactly 3.11, which doesn't seem to be your intention as you already added a "version < 3.11" check and not "version == 3.11". If the system default python3 version is less than the required version, then you can still run the scripts by doing `python3.11 ./script.py`. (Or you can also solve this by changing the default python3 version that is used on the system) We can and probably should instead look and see if the 3.11 specific features can't be written in a more backwards compatible way so we can run it with python 3.10 or older if this is a bigger problem.
Author
Member

Also, thank you for working on this while I am gone! :)
I really appreciate it!

I guess we try to tackle the addon downloading together when I'm back?

Also, thank you for working on this while I am gone! :) I really appreciate it! I guess we try to tackle the addon downloading together when I'm back?

Indeed the problem is that those two scripts strictly require Python 3.11. I can look into using a different method for more general compatibility. I'd like to get this merged today.

Indeed the problem is that those two scripts strictly require Python 3.11. I can look into using a different method for more general compatibility. I'd like to get this merged today.
Francesco Siddi added 2 commits 2023-08-31 20:06:22 +02:00
Francesco Siddi added 1 commit 2023-08-31 20:08:15 +02:00
Francesco Siddi changed title from WIP: project-helper-tools to Add project-tools 2023-08-31 20:08:48 +02:00

I removed the requirement about Python 3.11. We can assume that it will be the min Python version. Overall this still needs some work, but it can be done in main.

I removed the requirement about Python 3.11. We can assume that it will be the min Python version. Overall this still needs some work, but it can be done in main.
Francesco Siddi merged commit 863210900d into main 2023-08-31 20:33:04 +02:00
Francesco Siddi deleted branch project-helper-tools 2023-08-31 20:33:59 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/blender-studio-tools#142
No description provided.