mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-08 11:16:27 +02:00
add python 3.11.0b1 aplha (Unable to test)
This commit is contained in:
parent
81e315609d
commit
231b3d44a1
5 changed files with 38 additions and 0 deletions
22
packages/python/3.11.0b1/build.sh
Executable file
22
packages/python/3.11.0b1/build.sh
Executable 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
|
1
packages/python/3.11.0b1/environment
Normal file
1
packages/python/3.11.0b1/environment
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export PATH=$PWD/bin:$PATH
|
5
packages/python/3.11.0b1/metadata.json
Normal file
5
packages/python/3.11.0b1/metadata.json
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"language": "python",
|
||||||
|
"version": "3.11.0b1",
|
||||||
|
"aliases": ["py", "py3", "python3.11.0b1"]
|
||||||
|
}
|
3
packages/python/3.11.0b1/run
Normal file
3
packages/python/3.11.0b1/run
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
python3.11 "$@"
|
7
packages/python/3.11.0b1/test.py
Normal file
7
packages/python/3.11.0b1/test.py
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
working = True
|
||||||
|
|
||||||
|
match working:
|
||||||
|
case True:
|
||||||
|
print("OK")
|
||||||
|
case False:
|
||||||
|
print()
|
Loading…
Add table
Add a link
Reference in a new issue