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

Verify the support of WSL #274

Merged
merged 3 commits into from
Sep 12, 2024
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Original paper: [Ranking microbial metabolomic and genomic links in the NPLinker
## Setup and usage

### Requirement
- Linux or MacOS
- Linux, MacOS or [Windows with WSL](https://learn.microsoft.com/en-us/windows/wsl/)
- Python version ≥3.9


Expand Down
13 changes: 8 additions & 5 deletions bin/install-nplinker-deps
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@ else
exit
fi

# check the path of this script
if [[ $(command -v install-nplinker-deps) != $PY_PATH/bin/install-nplinker-deps ]]; then
echo "❌ Error: command `install-nplinker-deps` invoked from bad path;"
echo "Please install nplinker with `pip install nplinker` and then re-run this command."
exit
script_path=$(command -v install-nplinker-deps)
expected_path="$PY_PATH/bin/install-nplinker-deps"

if [[ $script_path != $expected_path ]]; then
echo "❌ Error: command 'install-nplinker-deps' invoked from an incorrect path or enviroment: $script_path"
echo "Please ensure that it is invoked from the expected path: $expected_path."
echo "Check your PATH environment variable to correct the execution order of paths."
exit 1
fi

# create dependecy install path
Expand Down
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

???- Note "Requirements"
- Linux or MacOS
- Linux, MacOS or [Windows with WSL](https://learn.microsoft.com/en-us/windows/wsl/)
- Python version ≥3.9


Expand Down
Loading