annotate pip_install.sh @ 66:3b1dbe3fb91b draft

planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
author ximgchess
date Mon, 24 Apr 2023 16:39:59 +0000
parents
children c1aed65c1d24
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
66
3b1dbe3fb91b planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff changeset
1 #!/bin/bash
3b1dbe3fb91b planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff changeset
2
3b1dbe3fb91b planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff changeset
3 if [[ $# -ne 1 ]]; then
3b1dbe3fb91b planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff changeset
4 echo "$0 requires the package as its only command line argument"
3b1dbe3fb91b planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff changeset
5 exit
3b1dbe3fb91b planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff changeset
6 fi
3b1dbe3fb91b planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff changeset
7
3b1dbe3fb91b planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff changeset
8 VERSION=`python --version | awk '{split($2,a,"."); printf "%s.%s", a[1], a[2]}'`
3b1dbe3fb91b planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff changeset
9 PIPLOC=`which python | sed 's/bin\/python//g'`
3b1dbe3fb91b planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff changeset
10 PIPLOC=$PIPLOC/lib/python$VERSION/site-packages
3b1dbe3fb91b planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff changeset
11
3b1dbe3fb91b planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff changeset
12 echo "Try installing $1 to $PIPLOC"
3b1dbe3fb91b planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff changeset
13 #pip install --target $PIPLOC $1