view pip_install.sh @ 96:4b123ebffb06 draft

planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit b682c580a95bebc59bc33128973cee4eac8362c7-dirty
author ximgchess
date Wed, 24 May 2023 14:47:49 +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