forked from blender/blender-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
io_blend_utils: ship BAM as wheel file, running BAM-pack from that
Previously we had a copy of BAM's blendfile_pack.py shipped with Blender. Updating that was cumbersome, as changes in one copy would have to be manually ported to the other. This is now resolved by not bundling blendfile_pack.py at all, but to include BAM as wheel file. This wheel file can be produced by running "python3 setup.py bdist_wheel" in the BAM source directory, and can be bundled with Blender without further modification. Blender looks for a file "blender_bam-*.whl" in the io_blend_utils directory, and loads the (alphabetically) last version. Even though there should be only one wheel file bundled, things won't break when there happen to be more, and Blender should pick up on the latest version (given simple versioning schemes).
- Loading branch information
1 parent
a746a84
commit 415c234
Showing
5 changed files
with
83 additions
and
623 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Bundling BAM with Blender | ||
------------------------- | ||
|
||
Blender is bundled with a version of [BAM](https://pypi.python.org/pypi/blender-bam/). | ||
To update this version, first build a new `wheel <http:https://pythonwheels.com/>`_ file in | ||
BAM itself: | ||
|
||
python3 setup.py bdist_wheel | ||
|
||
Then copy this wheel to Blender: | ||
|
||
cp dist/blender_bam-xxx.whl /path/to/blender/release/scripts/addons/io_blend_utils/ | ||
|
||
Remove old wheels that are still in `/path/to/blender/release/scripts/addons/io_blend_utils/` | ||
before committing. | ||
|
||
|
||
Running bam-pack from the wheel | ||
------------------------------- | ||
|
||
This is the way that Blender runs bam-pack: | ||
|
||
PYTHONPATH=./path/to/blender_bam-xxx.whl python3 -m bam.pack | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.