Mercurial > repos > ximgchess > chap_test_20230411
annotate pip_install.sh @ 69:c1aed65c1d24 draft
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 919e80fa3f8a9160766ff4d2c6b8956ec5553ad3-dirty
author | ximgchess |
---|---|
date | Mon, 24 Apr 2023 19:28:57 +0000 |
parents | 3b1dbe3fb91b |
children | 54d0adb79293 |
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" |
69
c1aed65c1d24
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 919e80fa3f8a9160766ff4d2c6b8956ec5553ad3-dirty
ximgchess
parents:
66
diff
changeset
|
13 pip install --target $PIPLOC $1 |