Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with pip install --find-links #136

Merged
merged 2 commits into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions .github/workflows/nrn-modeldb-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,18 @@ jobs:
run: |
# Install NEURON V1
if [[ -d "${DROP_DIR_V1}" ]]; then
python -m pip install --user --find-links ${DROP_DIR_V1} neuron-nightly
# due to https://github.com/pypa/pip/issues/12110 we cannot rely on `--find-links`
# so we use a workaround
for wheel in "${DROP_DIR_V1}"/*.whl
do
if ! python -m pip install --user "${wheel}"
then
echo "Unable to install ${wheel}, trying another one"
else
echo "Successfully installed ${wheel}"
break
fi
done
else
python -m pip install $NEURON_V1
fi
Expand All @@ -180,7 +191,18 @@ jobs:
run: |
# Install NEURON V2
if [[ -d "${DROP_DIR_V2}" ]]; then
python -m pip install --user --find-links ${DROP_DIR_V2} neuron-nightly
# due to https://github.com/pypa/pip/issues/12110 we cannot rely on `--find-links`
# so we use a workaround
for wheel in "${DROP_DIR_V2}"/*.whl
do
if ! python -m pip install --user "${wheel}"
then
echo "Unable to install ${wheel}, trying another one"
else
echo "Successfully installed ${wheel}"
break
fi
done
else
python -m pip install $NEURON_V2
fi
Expand Down
Loading