Skip to content

Commit d745882

Browse files
committed
bonsai Makefile - workaround for pyradiance in Python 3.13
Until LBNL-ETA/pyradiance#53 is resolved.
1 parent e8a4590 commit d745882

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/bonsai/Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,23 @@ endif
195195
cd build && . env/$(VENV_ACTIVATE) && $(PIP) download pytz --dest=./wheels
196196
cd build && . env/$(VENV_ACTIVATE) && $(PIP) download tzfpy $(PYPI_PLATFORM) --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --dest=./wheels
197197
# pyradiance is using different platform versions than defaults in our makefile.
198+
# Temporary use `pyradiance_py313` until https://github.com/LBNL-ETA/pyradiance/issues/53 is resolved.
199+
ifeq ($(PYVERSION), py313)
200+
ifeq ($(PLATFORM), linux)
201+
cd build && . env/$(VENV_ACTIVATE) && $(PIP) download pyradiance_py313 --platform manylinux_2_35_x86_64 --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --dest=./wheels
202+
else ifeq ($(PLATFORM), macos)
203+
cd build && . env/$(VENV_ACTIVATE) && $(PIP) download pyradiance_py313 --platform macosx_10_13_x86_64 --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --dest=./wheels
204+
else
205+
cd build && . env/$(VENV_ACTIVATE) && $(PIP) download pyradiance_py313 $(PYPI_PLATFORM) --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --dest=./wheels
206+
endif
207+
else
198208
ifeq ($(PLATFORM), linux)
199209
cd build && . env/$(VENV_ACTIVATE) && $(PIP) download pyradiance --platform manylinux_2_35_x86_64 --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --dest=./wheels
200210
else ifeq ($(PLATFORM), macos)
201211
cd build && . env/$(VENV_ACTIVATE) && $(PIP) download pyradiance --platform macosx_10_13_x86_64 --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --dest=./wheels
202212
else
203213
cd build && . env/$(VENV_ACTIVATE) && $(PIP) download pyradiance $(PYPI_PLATFORM) --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --dest=./wheels
214+
endif
204215
endif
205216
# Required by ifctester web ui.
206217
cd build && . env/$(VENV_ACTIVATE) && $(PIP) download flask $(PYPI_PLATFORM) --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --dest=./wheels

0 commit comments

Comments
 (0)