annotate pip_install.sh @ 58:894085c1f493 draft

planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit eda217fb0afe5af50380a24b578c668db9c004f4-dirty
author ximgchess
date Wed, 12 Apr 2023 18:56:39 +0000
parents 2a0a1c96b158
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
56
2abfae6df4f8 planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit eda217fb0afe5af50380a24b578c668db9c004f4-dirty
ximgchess
parents:
diff changeset
1 #!/bin/bash
2abfae6df4f8 planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit eda217fb0afe5af50380a24b578c668db9c004f4-dirty
ximgchess
parents:
diff changeset
2
2abfae6df4f8 planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit eda217fb0afe5af50380a24b578c668db9c004f4-dirty
ximgchess
parents:
diff changeset
3 VERSION=`python --version | awk '{split($2,a,"."); printf "%s.%s", a[1], a[2]}'`
2abfae6df4f8 planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit eda217fb0afe5af50380a24b578c668db9c004f4-dirty
ximgchess
parents:
diff changeset
4 PIPLOC=`which python | sed 's/bin\/python//g'`
2abfae6df4f8 planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit eda217fb0afe5af50380a24b578c668db9c004f4-dirty
ximgchess
parents:
diff changeset
5 PIPLOC=$PIPLOC/lib/python$VERSION/site-packages
2abfae6df4f8 planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit eda217fb0afe5af50380a24b578c668db9c004f4-dirty
ximgchess
parents:
diff changeset
6 echo $PIPLOC
2abfae6df4f8 planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit eda217fb0afe5af50380a24b578c668db9c004f4-dirty
ximgchess
parents:
diff changeset
7
2abfae6df4f8 planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit eda217fb0afe5af50380a24b578c668db9c004f4-dirty
ximgchess
parents:
diff changeset
8 echo 'Try installing $1 to $PIPLOC'
57
2a0a1c96b158 planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit eda217fb0afe5af50380a24b578c668db9c004f4-dirty
ximgchess
parents: 56
diff changeset
9 #pip --exists-action i install --target $PIPLOC $1
2a0a1c96b158 planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit eda217fb0afe5af50380a24b578c668db9c004f4-dirty
ximgchess
parents: 56
diff changeset
10 pip install --target $PIPLOC $1