mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +00:00
pyradiance macos support + linux fix
See: https://github.com/LBNL-ETA/pyradiance/issues/35 https://github.com/LBNL-ETA/pyradiance/issues/34
This commit is contained in:
@@ -214,11 +214,12 @@ endif
|
|||||||
cd dist/working && . env/bin/activate && $(PIP) install python-socketio[asyncio_client] --target=./site-packages
|
cd dist/working && . env/bin/activate && $(PIP) install python-socketio[asyncio_client] --target=./site-packages
|
||||||
cd dist/working && . env/bin/activate && $(PIP) install aiohttp --target=./site-packages
|
cd dist/working && . env/bin/activate && $(PIP) install aiohttp --target=./site-packages
|
||||||
# Required by light module
|
# Required by light module
|
||||||
|
# pyradiance is using different platform versions than defaults in our makefile.
|
||||||
ifeq ($(PLATFORM), linux)
|
ifeq ($(PLATFORM), linux)
|
||||||
# See https://github.com/LBNL-ETA/pyradiance/issues/34
|
cd dist/working && . env/bin/activate && $(PIP) install pyradiance --platform manylinux_2_35_x86_64 --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --target=./site-packages
|
||||||
cd dist/working && . env/bin/activate && $(PIP) install pyradiance --platform manylinux1_x86_64 --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --target=./site-packages
|
else ifeq ($(PLATFORM), macos)
|
||||||
else ifneq ($(PLATFORM), macos)
|
cd dist/working && . env/bin/activate && $(PIP) install pyradiance --platform macosx_10_13_x86_64 --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --target=./site-packages
|
||||||
# No support for MacOS Intel from upstream. Too bad :(
|
else
|
||||||
cd dist/working && . env/bin/activate && $(PIP) install pyradiance $(PYPI_PLATFORM) --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --target=./site-packages
|
cd dist/working && . env/bin/activate && $(PIP) install pyradiance $(PYPI_PLATFORM) --python-version $(PYPI_VERSION) --implementation $(PYPI_IMP) --only-binary=:all: --target=./site-packages
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -18,12 +18,7 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
try:
|
import pyradiance as pr
|
||||||
import pyradiance as pr
|
|
||||||
except ImportError:
|
|
||||||
print("PyRadiance is not available. Rendering functionality will be disabled.")
|
|
||||||
pr = None
|
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|||||||
Reference in New Issue
Block a user