-
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.
Another syntax for PIP_CONSTRAINTS to apply to phonopy build
- Loading branch information
Showing
1 changed file
with
21 additions
and
16 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 |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
env: | ||
coverage-on-version: "3.9" | ||
use-mpi: True | ||
PIP_CONSTRAINTS: pip_constraints.txt | ||
PIP_CONSTRAINTS_FILE: pip_constraints.txt | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
@@ -40,13 +40,13 @@ jobs: | |
- name: Install dependencies from pip | ||
run: | | ||
echo "numpy<2" >> $HOME/$PIP_CONSTRAINTS | ||
python3 -m pip install -c $HOME/$PIP_CONSTRAINTS wheel setuptools numpy scipy click matplotlib pyyaml spglib rdkit flake8 pytest pytest-cov requests | ||
echo "numpy<2" >> $HOME/$PIP_CONSTRAINTS_FILE | ||
python3 -m pip install -c $HOME/$PIP_CONSTRAINTS_FILE wheel setuptools numpy scipy click matplotlib pyyaml spglib rdkit flake8 pytest pytest-cov requests | ||
- name: Install latest ASE from pypi | ||
run: | | ||
echo PIP_CONSTRAINTS $HOME/$PIP_CONSTRAINTS | ||
python3 -m pip install -c $HOME/$PIP_CONSTRAINTS ase | ||
echo PIP_CONSTRAINTS_FILE $HOME/$PIP_CONSTRAINTS_FILE | ||
python3 -m pip install -c $HOME/$PIP_CONSTRAINTS_FILE ase | ||
echo -n "ASE VERSION " | ||
python3 -c "import ase; print(ase.__file__, ase.__version__)" | ||
|
@@ -75,50 +75,55 @@ jobs: | |
echo 'Failed to find *vars.sh in any pkg named *mkl*' | ||
exit 1 | ||
fi | ||
echo mklvars $mklvars | ||
nl $mklvars | ||
source $mklvars intel64 | ||
export PIP_CONSTRAINTS=$HOME/$PIP_CONSTRAINTS_FILE | ||
git clone https://github.com/phonopy/phonopy | ||
cd phonopy | ||
python3 -m pip install -c $HOME/$PIP_CONSTRAINTS -e . -vvv | ||
echo python3 -m pip install --no-build-isolation -c $PIP_CONSTRAINTS -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 -c $HOME/$PIP_CONSTRAINTS -e . -vvv | ||
python3 -m pip install --no-build-isolation -c $PIP_CONSTRAINTS -e . -vvv | ||
cd .. | ||
- name: Install Quippy from PyPI | ||
run: python3 -m pip install -c $HOME/$PIP_CONSTRAINTS quippy-ase | ||
run: python3 -m pip install -c $HOME/$PIP_CONSTRAINTS_FILE 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 -c $HOME/$PIP_CONSTRAINTS typing-extensions | ||
python3 -m pip install -c $HOME/$PIP_CONSTRAINTS_FILE typing-extensions | ||
# install pandas now to encourage compatible numpy version after conda regressed it | ||
python3 -m pip install -c $HOME/$PIP_CONSTRAINTS pandas | ||
python3 -m pip install -c $HOME/$PIP_CONSTRAINTS_FILE pandas | ||
- name: MACE | ||
run: | | ||
echo "search for torch version" | ||
set +o pipefail | ||
torch_version=$( python3 -m pip install -c $HOME/$PIP_CONSTRAINTS torch== 2>&1 | fgrep 'from versions' | sed -e 's/.* //' -e 's/)//' ) | ||
torch_version=$( python3 -m pip install -c $HOME/$PIP_CONSTRAINTS_FILE 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 -c $HOME/$PIP_CONSTRAINTS torch==${torch_version}+cpu -f https://download.pytorch.org/whl/torch_stable.html | ||
python3 -m pip install -c $HOME/$PIP_CONSTRAINTS_FILE torch==${torch_version}+cpu -f https://download.pytorch.org/whl/torch_stable.html | ||
echo "installing mace" | ||
python3 -m pip install -c $HOME/$PIP_CONSTRAINTS git+https://github.com/ACEsuit/mace.git@main | ||
python3 -m pip install -c $HOME/$PIP_CONSTRAINTS_FILE 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 -c $HOME/$PIP_CONSTRAINTS threadpoolctl | ||
python3 -m pip install -c $HOME/$PIP_CONSTRAINTS_FILE 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 -c $HOME/$PIP_CONSTRAINTS . | ||
run: python3 -m pip install -c $HOME/$PIP_CONSTRAINTS_FILE . | ||
|
||
- name: Install Quantum Espresso | ||
run: | | ||
|
@@ -152,7 +157,7 @@ jobs: | |
run: | | ||
# this can eaily be turned off if needed | ||
conda install -c conda-forge mpi4py openmpi pytest-mpi | ||
python3 -m pip install -c $PIP_CONSTRAINTS mpipool | ||
python3 -m pip install -c $PIP_CONSTRAINTS_FILE mpipool | ||
- name: Install and configure slurm and ExPyRe | ||
run: | | ||
|