From 3478723764e111296138be4c7a91a39787116834 Mon Sep 17 00:00:00 2001 From: thebigbone <95130644+thebigbone@users.noreply.github.com> Date: Mon, 24 Apr 2023 17:45:21 +0530 Subject: [PATCH] edited readme and install-dev.sh (#117) * edited readme and install * corrected * Update install-dev.sh Co-authored-by: c3b5aw * Update install-dev.sh Co-authored-by: c3b5aw --------- Co-authored-by: c3b5aw --- README.md | 2 +- install-dev.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e50877..768d2ff 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ Clone the repository and run the installation script ```bash git clone https://github.com/Escape-Technologies/graphinder.git -cd Graphinder +cd graphinder ./install-dev.sh ``` diff --git a/install-dev.sh b/install-dev.sh index a47ce3e..78fd31f 100755 --- a/install-dev.sh +++ b/install-dev.sh @@ -1,5 +1,17 @@ #!/bin/sh + +# Check if pip is installed, and install it if necessary +echo "---- Updating pip ----" +curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py +python get-pip.py +echo "---- Pip updated ----" +rm get-pip.py +if ! pip --version > /dev/null 2>&1; then + echo "Installing pip..." + curl -sSL https://bootstrap.pypa.io/get-pip.py | python +fi echo "---- Installing Python Poetry ----" +echo "---- Updating pip ----" pip install -U pip pip install -U poetry poetry config virtualenvs.in-project true