Skip to content

Commit 0f34420

Browse files
committed
Fix missing pkg_resources brickschema dependency
1 parent 3ef6077 commit 0f34420

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/blenderbim/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,14 @@ endif
516516
cd dist/working/owlrl-6.0.2/ && cp -r owlrl ../../blenderbim/libs/site/packages/
517517
rm -rf dist/working
518518

519+
# Required by brickschema
520+
# This is a bit of a dodgy one, it should be provided by setuptools which Blender doesn't ship.
521+
mkdir dist/working
522+
cd dist/working && wget https://blenderbim.org/builds/pkg_resources.tar.gz
523+
cd dist/working && tar -xzvf pkg_resources*
524+
cd dist/working/ && cp -r pkg_resources ../blenderbim/libs/site/packages/
525+
rm -rf dist/working
526+
519527
cd dist/blenderbim && sed -i "s/999999/$(VERSION)/" __init__.py
520528
cd dist && zip -r blenderbim-$(VERSION)-$(PYVERSION)-$(PLATFORM).zip ./*
521529
rm -rf dist/blenderbim

0 commit comments

Comments
 (0)