-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
explicitly pass -c $PIP_CONSTRAINTS to every pip install in github CI
- Loading branch information
Showing
1 changed file
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,13 +39,13 @@ jobs: | |
- name: Install dependencies from pip | ||
run: | | ||
export PIP_CONSTRAINTS=$HOME/pip_constraints | ||
export PIP_CONSTRAINTS=$HOME/pip_constraints.txt | ||
echo "numpy<2" > $PIP_CONSTRAINTS | ||
python3 -m pip install wheel setuptools numpy scipy click matplotlib pyyaml spglib rdkit flake8 pytest pytest-cov requests | ||
python3 -m pip install -c $PIP_CONSTRAINTS wheel setuptools numpy scipy click matplotlib pyyaml spglib rdkit flake8 pytest pytest-cov requests | ||
- name: Install latest ASE from gitlab | ||
run: | | ||
python3 -m pip install ase | ||
python3 -m pip install -c $PIP_CONSTRAINTS ase | ||
echo -n "ASE VERSION " | ||
python3 -c "import ase; print(ase.__file__, ase.__version__)" | ||
|
@@ -78,46 +78,46 @@ jobs: | |
git clone https://github.com/phonopy/phonopy | ||
cd phonopy | ||
python3 -m pip install -e . -vvv | ||
python3 -m pip install -c $PIP_CONSTRAINTS -e . -vvv | ||
cd .. | ||
git clone https://github.com/phonopy/phono3py | ||
cd phono3py | ||
python3 -m pip install -e . -vvv | ||
python3 -m pip install -c $PIP_CONSTRAINTS -e . -vvv | ||
cd .. | ||
- name: Install Quippy from PyPI | ||
run: python3 -m pip install quippy-ase | ||
run: python3 -m pip install -c $PIP_CONSTRAINTS quippy-ase | ||
|
||
- name: Install xTB (before things that need pandas like MACE and wfl, since it will break pandas-numpy compatibility by downgrading numpy) | ||
run: | | ||
conda install -c conda-forge xtb-python | ||
python3 -m pip install typing-extensions | ||
python3 -m pip install -c $PIP_CONSTRAINTS typing-extensions | ||
# install pandas now to encourage compatible numpy version after conda regressed it | ||
python3 -m pip install pandas | ||
python3 -m pip install -c $PIP_CONSTRAINTS pandas | ||
- name: MACE | ||
run: | | ||
echo "search for torch version" | ||
set +o pipefail | ||
torch_version=$( python3 -m pip install torch== 2>&1 | fgrep 'from versions' | sed -e 's/.* //' -e 's/)//' ) | ||
torch_version=$( python3 -m pip install -c $PIP_CONSTRAINTS torch== 2>&1 | fgrep 'from versions' | sed -e 's/.* //' -e 's/)//' ) | ||
echo "found torch version $torch_version, installing cpu-only variant" | ||
python3 -m pip install torch==${torch_version}+cpu -f https://download.pytorch.org/whl/torch_stable.html | ||
python3 -m pip install -c $PIP_CONSTRAINTS torch==${torch_version}+cpu -f https://download.pytorch.org/whl/torch_stable.html | ||
echo "installing mace" | ||
python3 -m pip install git+https://github.com/ACEsuit/mace.git@main | ||
python3 -m pip install -c $PIP_CONSTRAINTS git+https://github.com/ACEsuit/mace.git@main | ||
python3 -c "import mace; print(mace.__file__)" | ||
- name: Julia and ace fit | ||
run: | | ||
python3 -m pip install threadpoolctl | ||
python3 -m pip install -c $PIP_CONSTRAINTS threadpoolctl | ||
wget https://julialang-s3.julialang.org/bin/linux/x64/1.8/julia-1.8.1-linux-x86_64.tar.gz | ||
tar xzf julia-1.8.1-linux-x86_64.tar.gz | ||
# note that this hardwires a particular compatible ACE1pack version | ||
echo 'using Pkg; pkg"registry add https://github.com/JuliaRegistries/General"; pkg"registry add https://github.com/JuliaMolSim/MolSim.git"; pkg"add [email protected], ACE1, JuLIP, IPFitting, ASE"' > ace1pack_install.jl | ||
${PWD}/julia-1.8.1/bin/julia ace1pack_install.jl | ||
- name: Install wfl (expyre and universalSOAP are dependencies) | ||
run: python3 -m pip install . | ||
run: python3 -m pip install -c $PIP_CONSTRAINTS . | ||
|
||
- name: Install Quantum Espresso | ||
run: | | ||
|
@@ -151,7 +151,7 @@ jobs: | |
run: | | ||
# this can eaily be turned off if needed | ||
conda install -c conda-forge mpi4py openmpi pytest-mpi | ||
python3 -m pip install mpipool | ||
python3 -m pip install -c $PIP_CONSTRAINTS mpipool | ||
- name: Install and configure slurm and ExPyRe | ||
run: | | ||
|