Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
fix Python 3.10 missing distutils
Browse files Browse the repository at this point in the history
  • Loading branch information
KumaTea committed Aug 18, 2021
1 parent 49b0169 commit dd3c9f1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,20 @@ PYVER=$1
sudo apt update
sudo apt install -y git software-properties-common
sudo add-apt-repository -y ppa:deadsnakes/ppa
sudo apt install -y $PYVER
if [ "$PYVER" = "python3.10" ]; then
sudo apt install -y $PYVER-dev $PYVER-distutils
else
sudo apt install -y $PYVER
fi

bash test/check-arch.sh
$PYVER -m pip install -U pip setuptools wheel
if [ "$PYVER" = "python3.10" ]; then
wget https://bootstrap.pypa.io/get-pip.py
$PYVER get-pip.py
$PYVER -m pip install -U pip setuptools wheel
else
$PYVER -m pip install -U pip setuptools wheel
fi
$PYVER -m pip install cffi dataclasses future numpy pillow pyyaml requests six typing_extensions tqdm -f https://ext.kmtea.eu/whl/stable.html
$PYVER -m pip install torch -f https://torch.kmtea.eu/whl/stable.html
$PYVER -m pip install torchvision torchaudio torchtext -f https://torch.kmtea.eu/whl/stable.html
Expand Down

0 comments on commit dd3c9f1

Please sign in to comment.