add python 3.11.0b1 aplha (Unable to test)

This commit is contained in:
Bones 2022-05-10 18:46:04 +10:00
parent 81e315609d
commit 231b3d44a1
No known key found for this signature in database
GPG key ID: 3495229EF07831F3
5 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#!/bin/bash
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
curl "https://www.python.org/ftp/python/3.11.0/Python-3.11.0b1.tgz" -o python.tar.gz
tar xzf python.tar.gz --strip-components=1
rm python.tar.gz
./configure --prefix "$PREFIX" --with-ensurepip=install
make -j$(nproc)
make install -j$(nproc)
cd ..
rm -rf build
# This is alpha version, hence most of the libraries are not compatible with python3.11.0b1
# bin/pip3 install numpy scipy pandas pycrypto whoosh bcrypt passlib sympy

View file

@ -0,0 +1 @@
export PATH=$PWD/bin:$PATH

View file

@ -0,0 +1,5 @@
{
"language": "python",
"version": "3.11.0b1",
"aliases": ["py", "py3", "python3.11.0b1"]
}

View file

@ -0,0 +1,3 @@
#!/bin/bash
python3.11 "$@"

View file

@ -0,0 +1,7 @@
working = True
match working:
case True:
print("OK")
case False:
print()