Skip to content

Commit

Permalink
[CI] Use --upgrade to avoid changing directories for install of sdist
Browse files Browse the repository at this point in the history
Install the sdist using

python3 -m pip --verbose install --upgrade ./dist/xrootd-*.tar.gz

to avoid having to change directories to move xrootd.egg-info off PYTHONPATH.

Note the use of --upgrade is only necessary on tags where there is properly
formatted SemVer version info in the sdist. A dev version like
'20220426.post7797547' doesn't need the --upgrade, but it is easier to just
always use it.
  • Loading branch information
matthewfeickert committed Apr 26, 2022
1 parent f836860 commit 1e94e29
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,7 @@ jobs:
run: |
cp packaging/wheel/* .
./publish.sh
cd .. # Move xrootd.egg-info off PYTHONPATH
python3 -m pip --verbose install xrootd/dist/xrootd-*.tar.gz
python3 -m pip --verbose install --upgrade ./dist/xrootd-*.tar.gz
python3 -m pip list
- name: Verify Python bindings
Expand Down Expand Up @@ -629,8 +628,7 @@ jobs:
run: |
cp packaging/wheel/* .
./publish.sh
cd .. # Move xrootd.egg-info off PYTHONPATH
python3 -m pip --verbose install xrootd/dist/xrootd-*.tar.gz
python3 -m pip --verbose install --upgrade ./dist/xrootd-*.tar.gz
python3 -m pip list
- name: Verify Python bindings
Expand Down Expand Up @@ -677,7 +675,7 @@ jobs:
run: |
cp packaging/wheel/* .
./publish.sh
python3 -m pip --verbose install ./dist/xrootd-*.tar.gz
python3 -m pip --verbose install --upgrade ./dist/xrootd-*.tar.gz
python3 -m pip list
- name: Show site-pacakges layout for XRootD modules
Expand Down

0 comments on commit 1e94e29

Please sign in to comment.