Skip to content

Commit

Permalink
swapping order of installs
Browse files Browse the repository at this point in the history
  • Loading branch information
gbarter committed Jan 17, 2024
1 parent a3558ed commit 6c43ad5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/CI_pyFrame3DD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,23 @@ jobs:
python-version: ${{ matrix.python-version }}
update-environment: true

- name: Editable Pip Install pyFrame3DD
env:
CC: '${{ steps.install_cc.outputs.cc }}'
CXX: '${{ steps.install_cc.outputs.cxx }}'
run: |
'${{ steps.cp.outputs.python-path }}' -m pip install --no-build-isolation -e .[test]
- name: Editable Test run
run: |
'${{ steps.cp.outputs.python-path }}' -m pytest test
- name: Pip Install pyFrame3DD
env:
CC: '${{ steps.install_cc.outputs.cc }}'
CXX: '${{ steps.install_cc.outputs.cxx }}'
run: |
'${{ steps.cp.outputs.python-path }}' -m pip uninstall pyframe3dd
'${{ steps.cp.outputs.python-path }}' -m pip install -v .[test]
#- name: Setup tmate session
Expand All @@ -51,18 +63,6 @@ jobs:
- name: Test run
run: |
'${{ steps.cp.outputs.python-path }}' -m pytest test
- name: Editable Pip Install pyFrame3DD
env:
CC: '${{ steps.install_cc.outputs.cc }}'
CXX: '${{ steps.install_cc.outputs.cxx }}'
run: |
'${{ steps.cp.outputs.python-path }}' -m pip uninstall pyframe3dd
'${{ steps.cp.outputs.python-path }}' -m pip install --no-build-isolation -e .
- name: Editable Test run
run: |
'${{ steps.cp.outputs.python-path }}' -m pytest test
build_conda:
Expand Down
1 change: 1 addition & 0 deletions pyframe3dd/pyframe3dd.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
os.path.join( sysconfig.get_config_var("userbase"), "lib", "python", "site-packages", "pyframe3dd", libname), # system wide local
]

# For Meson's editable installs
for p in sys.meta_path:
if "_build_path" in p.__dict__:
lib_opt += [os.path.join(p._build_path, "pyframe3dd", libname)]
Expand Down

0 comments on commit 6c43ad5

Please sign in to comment.