IMTEK-Simulation / NuMPI

Utilities for MPI-parallel numerical calculations with Python
MIT License
2 stars 1 forks source link

Bug/ci net cdf installation #52

Closed sannant closed 3 years ago

sannant commented 3 years ago

What happend:

In .travis.yml

before_install:
  - source .travis.before_install.bash  # installs NetCDF with parallel capabilities, including the python package (--no-binary etc...)
install:
  - source .print_netcdf_capabilities.sh   # Output:  NetCDF has parallel capabilities 
  - python -m pip install --upgrade  -r requirements.txt --no-binary setuptools_scm   # pip reinstalls the netCDF package
  - source .print_netcdf_capabilities.sh  # Output:  NetCDF has no  parallel capabilities anymore
  - python setup.py install

I tried

python -m pip install --upgrade --upgrade-strategy "only-if-needed" -r requirements.txt --no-binary setuptools_scm

But it still reinstalled netCDF

Finally I ended up removing the netCDF line on the fly in requirements using sed. I don't now what changed today for this new behaviour of pip.