#! /bin/sh -x # SuPar installer for Cygwin64, which requires: # python37-devel python37-pip python37-cython python37-numpy python37-wheel # gcc-g++ mingw64-x86_64-gcc-g++ git curl make cmake case "`uname -a`" in *'x86_64 Cygwin') : ;; *) echo Only for Cygwin64 >&2 exit 2 ;; esac TOKENIZERS_VERSION=0.11.6 export TOKENIZERS_VERSION pip3.7 list | ( egrep '^tokenizers +'$TOKENIZERS_VERSION || curl https://raw.githubusercontent.com/KoichiYasuoka/CygTorch/master/installer/tokenizers.sh | sh -x ) V=`pip3.7 list | sed -n 's/^tokenizers *\([^ ]*\) *$/\1/p'` pip3.7 install tokenizers==$V supar -f https://github.com/KoichiYasuoka/CygTorch exit 0