view pip_install.sh @ 89:99b91cd171fb draft

planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit bdda7b10cb14636169d6aadba4d2a78d1679be45
author ximgchess
date Tue, 23 May 2023 14:56:33 +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