view pip_install.sh @ 88:c1ab13b9bd0a draft

planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 68cb427ae89554b84bb7eb9f1ff9ab1497539208-dirty
author ximgchess
date Fri, 19 May 2023 10:46:43 +0000
parents 54d0adb79293
children
line wrap: on
line source

#!/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 --upgrade