Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dep: add shapely #1069

Merged
merged 1 commit into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 8 additions & 13 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ export HDF5_USE_FILE_LOCKING=FALSE # request that HDF5 file locks should NOT
#### d. Tab complete sub-commands ####

We recommend activating the <a href="https://kislyuk.github.io/argcomplete/">tab completion</a> as below if you:

1. Use bash or zsh shells
2. On Linux or macOS
3. Run MintPy in sub-commands style, e.g. <code>mintpy view</code> instead of <code>view.py</code>
Expand All @@ -245,23 +246,17 @@ On macOS, there is a <a href="https://kislyuk.github.io/argcomplete/#global-comp
<details>
<p><summary>Click to expand for more details</summary></p>

macOS ships with an older version of the bash shell, but <code>argcomplete</code> requires the newer version, which can be installed as below.
macOS ships with an older version of the bash shell (run <code>echo $BASH_VERSION</code> to check the version number), but <code>argcomplete</code> requires the newer version (>=4.2), which can be installed using <a href="https://brew.sh/">Homebrew</a> as:

```bash
# check the current bash version: argcomplete requires bash>=4.2
echo $BASH_VERSION

# install via mamba
mamba install bash

# add the path to /etc/shells file
echo "${CONDA_PREFIX}/bin/bash" | sudo tee -a /etc/shells
brew install bash
```

# change your shell via chsh
chsh -s "${CONDA_PREFIX}/bin/bash"
You will also need to add the bash to <code>/etc/shells</code> and change your shell via <code>chsh</code> as:

# check the current bash version
echo $BASH_VERSION
```bash
echo "/usr/local/bin/bash" | sudo tee -a /etc/shells
chsh -s "/usr/local/bin/bash"
```

Then run <code>activate-global-python-argcomplete --user</code> again. You may need to add the following to your <code>~/.bash_profile</code> file.
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pysolid
rich
scikit-image
scipy
shapely
utm
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"setuptools",
"scikit-image",
"scipy",
"shapely",
"utm",
],
extras_require={
Expand Down