Skip to content

Commit eaf2c10

Browse files
authored
Use pip install as workaround when make install doesn't work (#1585)
* Don't use editable install for vercel build Fixes issue with `pip=21.3`, inspired by commit from zarr-developers/zarr-python@7ee2ded. * Mention how Windows users can install PyGMT in editable mode So that Windows users without `make` can install an editable version of PyGMT locally.
1 parent 30a65da commit eaf2c10

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/contributing.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ copy the commands you want to run.
197197
To install the current source code into your testing environment, run:
198198

199199
```bash
200-
make install
200+
make install # on Linux/macOS
201+
pip install --no-deps -e . # on Windows
201202
```
202203

203204
This installs your project in *editable* mode, meaning that changes made to the source

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"scripts": {
33
"build:miniconda": "curl -o ~/miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && bash ~/miniconda.sh -b -p $HOME/miniconda",
4-
"build:pygmt": "conda install mamba -c conda-forge -y && mamba env create -f environment.yml && source activate pygmt && make install",
4+
"build:pygmt": "conda install mamba -c conda-forge -y && mamba env create -f environment.yml && source activate pygmt && pip install --no-deps .",
55
"build:docs": "source activate pygmt && cd doc && make all && mv _build/html ../public",
66
"build": "export PATH=$HOME/miniconda/bin:$PATH && export GMT_DATA_SERVER=https://oceania.generic-mapping-tools.org && npm run build:miniconda && npm run build:pygmt && npm run build:docs"
77
}

0 commit comments

Comments
 (0)