From bb910e42ab2c2b893b1eb5084e14f657489bca51 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 18 Jul 2024 22:05:36 +0500 Subject: [PATCH] fix dependencies that should be downloaded for specific platform MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Builds are finally working (atleast tested on windows) 🥳 Thanks to Blender now we'll always now if some dependency will become platform specific. It shows errors like: Skipping wheel for other system (manylinux_2_24_x86_64.manylinux_2_28_x86_64 != win_amd64): greenlet-3.0.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl Skipping wheel for other system (manylinux_2_17_x86_64.manylinux2014_x86_64 != win_amd64): yarl-1.9.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Skipping wheel for other system (manylinux_2_17_x86_64.manylinux2014_x86_64 != win_amd64): aiohttp-3.9.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Skipping wheel for other system (manylinux_2_17_x86_64.manylinux2014_x86_64 != win_amd64): MarkupSafe-2.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Skipping wheel for other system (manylinux_2_17_x86_64.manylinux2014_x86_64 != win_amd64): fonttools-4.53.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Skipping wheel for other system (manylinux_2_17_x86_64.manylinux2014_x86_64 != win_amd64): charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Skipping wheel for other system (manylinux_2_17_x86_64.manylinux2014_x86_64 != win_amd64): ezdxf-1.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Skipping wheel for other system (manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64 != win_amd64): frozenlist-1.4.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl Skipping wheel for other system (manylinux_2_17_x86_64.manylinux2014_x86_64 != win_amd64): SQLAlchemy-2.0.31-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Skipping wheel for other system (manylinux_2_17_x86_64.manylinux2014_x86_64 != win_amd64): multidict-6.0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl --- src/blenderbim/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/blenderbim/Makefile b/src/blenderbim/Makefile index 760e598ed8..c5f9f747c4 100644 --- a/src/blenderbim/Makefile +++ b/src/blenderbim/Makefile @@ -141,9 +141,10 @@ endif # Provides express rule validation for ifcopenshell.validate cd build && . env/bin/activate && $(PIP) download pytest --dest=./wheels # Provides Brickschema functionality - cd build && . env/bin/activate && $(PIP) download "brickschema[persistence]==0.7.6a2" --dest=./wheels + # Is not platform specific but has platform specific dependencies. + cd build && . env/bin/activate && $(PIP) download "brickschema[persistence]==0.7.6a2" $(PYPI_PLATFORM) --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --dest=./wheels # Required for SVG to DXF conversion - cd build && . env/bin/activate && $(PIP) download ezdxf --dest=./wheels + cd build && . env/bin/activate && $(PIP) download ezdxf $(PYPI_PLATFORM) --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --dest=./wheels # Required by bcf cd build && . env/bin/activate && $(PIP) download xsdata --dest=./wheels cd build && . env/bin/activate && $(PIP) download xmlschema --dest=./wheels @@ -172,8 +173,9 @@ endif # Required by IFC4D cd build && . env/bin/activate && $(PIP) download PyP6Xer --dest=./wheels # Required by web module - cd build && . env/bin/activate && $(PIP) download python-socketio[asyncio_client] --dest=./wheels - cd build && . env/bin/activate && $(PIP) download aiohttp --dest=./wheels + # Is not platform specific but has platform specific dependencies. + cd build && . env/bin/activate && $(PIP) download python-socketio[asyncio_client] $(PYPI_PLATFORM) --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --dest=./wheels + cd build && . env/bin/activate && $(PIP) download aiohttp $(PYPI_PLATFORM) --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --dest=./wheels # Required by light module cd build && . env/bin/activate && $(PIP) download pytz --dest=./wheels cd build && . env/bin/activate && $(PIP) download tzfpy $(PYPI_PLATFORM) --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --dest=./wheels