From 49555eb81e01bb2a5ad5df892cdbe42b7059490b Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 17 Jul 2024 16:14:03 +0500 Subject: [PATCH] pack ifcjson to wheel --- src/blenderbim/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/blenderbim/Makefile b/src/blenderbim/Makefile index aa882b3cc0..4a01850eba 100644 --- a/src/blenderbim/Makefile +++ b/src/blenderbim/Makefile @@ -265,7 +265,17 @@ endif mkdir dist/working cd dist/working && wget https://github.com/IFCJSON-Team/IFC2JSON_python/archive/master.zip cd dist/working && unzip master.zip - cp -r dist/working/IFC2JSON_python-master/file_converters/ifcjson dist/blenderbim/libs/site/packages/ + # IFCJSON doesn't have pyrproject.toml, so we use python command. + cd dist/working/IFC2JSON_python-master/file_converters/ifcjson && \ + $(PYTHON) -c "from setuptools import setup, find_packages; \ + setup( \ + name='ifcjson', \ + version='0.0.0', \ + author='Jan Brouwer', \ + author_email='jan@brewsky.nl', \ + packages=find_packages(include=['ifcjson*']), \ + )" bdist_wheel + cp -r dist/working/IFC2JSON_python-master/file_converters/ifcjson/dist/*.whl dist/blenderbim/wheels/ rm -rf dist/working # Provides Brickschema functionality