From 3c2c191e8645048550586527de0d904771a3c61d Mon Sep 17 00:00:00 2001 From: Cunliang Geng Date: Thu, 12 Sep 2024 13:56:44 +0200 Subject: [PATCH 1/3] Update install-nplinker-deps --- bin/install-nplinker-deps | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bin/install-nplinker-deps b/bin/install-nplinker-deps index 98b362aa..e2e13250 100755 --- a/bin/install-nplinker-deps +++ b/bin/install-nplinker-deps @@ -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 From 88c55c497708d13f6bf1ce82001e874781133fe6 Mon Sep 17 00:00:00 2001 From: Cunliang Geng Date: Thu, 12 Sep 2024 14:27:41 +0200 Subject: [PATCH 2/3] update doc and readme --- README.md | 2 +- docs/install.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 13e3b8af..6547575c 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Original paper: [Ranking microbial metabolomic and genomic links in the NPLinker ## Setup and usage ### Requirement -- Linux or MacOS +- Linux, MacOS and [Windows with WSL](https://learn.microsoft.com/en-us/windows/wsl/) - Python version ≥3.9 diff --git a/docs/install.md b/docs/install.md index baa917cb..a081d019 100644 --- a/docs/install.md +++ b/docs/install.md @@ -1,6 +1,6 @@ ???- Note "Requirements" - - Linux or MacOS + - Linux, MacOS and [Windows with WSL](https://learn.microsoft.com/en-us/windows/wsl/) - Python version ≥3.9 From ab45190ae8854f8b1c4cf7e2f12039e7e45487a2 Mon Sep 17 00:00:00 2001 From: Cunliang Geng Date: Thu, 12 Sep 2024 14:33:52 +0200 Subject: [PATCH 3/3] fix typo --- README.md | 2 +- docs/install.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6547575c..6afc9587 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Original paper: [Ranking microbial metabolomic and genomic links in the NPLinker ## Setup and usage ### Requirement -- Linux, MacOS and [Windows with WSL](https://learn.microsoft.com/en-us/windows/wsl/) +- Linux, MacOS or [Windows with WSL](https://learn.microsoft.com/en-us/windows/wsl/) - Python version ≥3.9 diff --git a/docs/install.md b/docs/install.md index a081d019..41554cb4 100644 --- a/docs/install.md +++ b/docs/install.md @@ -1,6 +1,6 @@ ???- Note "Requirements" - - Linux, MacOS and [Windows with WSL](https://learn.microsoft.com/en-us/windows/wsl/) + - Linux, MacOS or [Windows with WSL](https://learn.microsoft.com/en-us/windows/wsl/) - Python version ≥3.9