Skip to content

Commit

Permalink
Improvements and fixed setuptools install
Browse files Browse the repository at this point in the history
  • Loading branch information
aldro61 authored Jan 13, 2019
1 parent 4a9aee3 commit 385a73a
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ EndOfMessage
# Remove any prior installation
rm -r ./bin 2>/dev/null

cd ./core
CORE=$(pwd -P)
# Get the install context
INSTALL=$(pwd -P)
cd ./core && CORE=$(pwd -P)

echo -e "Installing GATB\n-----------------"
cd kover/dataset/tools/kmer_tools
Expand All @@ -34,23 +35,17 @@ cd ${CORE}
echo -e "\n\n"

echo -e "Installing setuptools\n-----------------"
python bootstrap_setuptools.py; rm setuptools-*.zip
pip install setuptools
echo -e "\n\n"

echo -e "Installing Kover\n-----------------"
python setup.py install
pip install -e .
echo -e "\n\n"

echo -e "Cleaning up..."
rm -r build; rm -r dist; rm -r kover.egg-info
cd kover/dataset/tools/kmer_tools
rm -r build
cd ${CORE}

# Create executable
cd ..
mkdir bin
cd ./bin
(echo -e "Creating Kover executable"; ln -s ../interfaces/command_line.py kover; chmod u+x ./kover)

echo -e Done.
echo -e "\n\nPlease add $INSTALL/bin/ to your PATH environment variable."

0 comments on commit 385a73a

Please sign in to comment.