From 56f6bd1a4189468f07bb3c423b6d94def5db6007 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Wed, 20 Oct 2021 15:24:32 +1300 Subject: [PATCH 1/2] Don't use editable install for vercel build Fixes issue with `pip=21.3`, inspired by commit from https://github.com/zarr-developers/zarr-python/pull/850/commits/7ee2deddb7bf5d45adf40d8dc13343a5589177ad. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 74ffc853058..acdc63823de 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "scripts": { "build:miniconda": "curl -o ~/miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && bash ~/miniconda.sh -b -p $HOME/miniconda", - "build:pygmt": "conda install mamba -c conda-forge -y && mamba env create -f environment.yml && source activate pygmt && make install", + "build:pygmt": "conda install mamba -c conda-forge -y && mamba env create -f environment.yml && source activate pygmt && pip install --no-deps .", "build:docs": "source activate pygmt && cd doc && make all && mv _build/html ../public", "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" } From b9b4f9ea305c4c9f0abfe51487dc38d707a42815 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Wed, 20 Oct 2021 15:25:45 +1300 Subject: [PATCH 2/2] Mention how Windows users can install PyGMT in editable mode So that Windows users without `make` can install an editable version of PyGMT locally. --- doc/contributing.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/contributing.md b/doc/contributing.md index 4ca8dbee88f..636f5841086 100644 --- a/doc/contributing.md +++ b/doc/contributing.md @@ -197,7 +197,8 @@ copy the commands you want to run. To install the current source code into your testing environment, run: ```bash -make install +make install # on Linux/macOS +pip install --no-deps -e . # on Windows ``` This installs your project in *editable* mode, meaning that changes made to the source