Skip to content

Commit 9eb66e2

Browse files
RoryBarnesclaude
andcommitted
Fix pip-install import test by avoiding local source shadow
The import verification runs from the repo root, where the local vplanet/ source directory shadows the installed package. The local source lacks the compiled C extension (vplanet_core), causing ModuleNotFoundError. Fix by cd'ing to /tmp before running the import test. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1cc3cba commit 9eb66e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/pip-install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ jobs:
3737
run: |
3838
python -m venv venv-sdist
3939
venv-sdist/bin/python -m pip install dist/vplanet*.tar.gz
40-
venv-sdist/bin/python -c "import vplanet; print(vplanet.__version__)"
40+
cd /tmp && "$GITHUB_WORKSPACE/venv-sdist/bin/python" -c "import vplanet; print(vplanet.__version__)"
4141
4242
- name: Test the wheel
4343
run: |
4444
python -m venv venv-wheel
4545
venv-wheel/bin/python -m pip install dist/vplanet*.whl
46-
venv-wheel/bin/python -c "import vplanet; print(vplanet.__version__)"
46+
cd /tmp && "$GITHUB_WORKSPACE/venv-wheel/bin/python" -c "import vplanet; print(vplanet.__version__)"
4747
4848
- uses: actions/upload-artifact@v4
4949
with:

0 commit comments

Comments
 (0)