Skip to content

Commit

Permalink
ci: pin proj to v7 for cartopy install
Browse files Browse the repository at this point in the history
homebrew now installs proj8 by default
proj8 deprecated and removed the proj_api.h header
SciTools/cartopy#1140
  • Loading branch information
tsutterley committed May 28, 2021
1 parent a8ca5be commit 1ad610e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/python-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,23 @@ jobs:
- name: Install dependencies for MacOS
if: matrix.os == 'macos-latest'
run: |
brew install proj
brew install proj@7
brew install geos
brew install gdal
brew install hdf5
brew install netcdf
brew install octave
brew install pkg-config
pip install --upgrade pip
pip install cython
pip install numpy
pip install zarr
pip install pandas
pip install scikit-learn
export LDFLAGS="-L/usr/local/opt/proj@7/lib"
export CPPFLAGS="-I/usr/local/opt/proj@7/include"
export ACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/proj@7/lib/pkgconfig"
pip install --no-deps git+https://github.com/tsutterley/read-ICESat-2.git
pip install --no-deps git+https://github.com/tsutterley/read-ATM1b-QFIT-binary.git
pip install .
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ scipy
pyproj
python-dateutil
matplotlib
cartopy
cartopy --no-binary=cartopy
netCDF4
h5py
gdal
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
else:
# get install requirements
with open('requirements.txt') as fh:
install_requires = fh.read().splitlines()
install_requires = [line.split().pop(0) for line in fh.read().splitlines()]
# dependency links (data readers)
dependency_links = ['https://github.com/tsutterley/read-ICESat-2/tarball/main',
'https://github.com/tsutterley/read-ATM1b-QFIT-binary/tarball/main']
Expand Down

0 comments on commit 1ad610e

Please sign in to comment.