This now uses SOURCE_DIR instead of SETUPPY_DIR to fix package discovery when running in pre-built mode, which will fix the errors reported on CI:
ImportError while loading conftest '/home/runner/work/SHARK-Platform/SHARK-Platform/libshortfin/tests/conftest.py'.
tests/conftest.py:10: in <module>
import shortfin as sf
E ModuleNotFoundError: No module named 'shortfin'
Logs from a failed build:
setup.py running in pre-built mode:
SOURCE_DIR = /home/runner/work/SHARK-Platform/SHARK-Platform/libshortfin
BINARY_DIR = /home/runner/work/SHARK-Platform/SHARK-Platform/libshortfin/build
Found libshortfin packages: ['_shortfin_default']
Progress on https://github.com/nod-ai/SHARK-Platform/issues/130. This reverts https://github.com/nod-ai/SHARK-Platform/pull/224 to re-land https://github.com/nod-ai/SHARK-Platform/pull/223.
This now uses
SOURCE_DIR
instead ofSETUPPY_DIR
to fix package discovery when running in pre-built mode, which will fix the errors reported on CI:Logs from a failed build:
Logs from a successful build: