annotate pip_install.sh @ 87:61ed115162c1 draft

planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 68cb427ae89554b84bb7eb9f1ff9ab1497539208-dirty
author ximgchess
date Fri, 19 May 2023 10:22:08 +0000
parents 54d0adb79293
children
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"
70
54d0adb79293 planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 919e80fa3f8a9160766ff4d2c6b8956ec5553ad3-dirty
ximgchess
parents: 69
diff changeset
13 pip install --target $PIPLOC $1 --upgrade