diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pip_install.sh	Mon Apr 24 16:39:59 2023 +0000
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+if [[ $# -ne 1 ]]; then
+  echo "$0 requires the package as its only command line argument"
+  exit
+fi
+
+VERSION=`python --version | awk '{split($2,a,"."); printf "%s.%s", a[1], a[2]}'`
+PIPLOC=`which python | sed 's/bin\/python//g'`
+PIPLOC=$PIPLOC/lib/python$VERSION/site-packages
+
+echo "Try installing $1 to $PIPLOC"
+#pip install --target $PIPLOC $1