Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.12.0 support #633

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions packages/python/3.12.0/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

PREFIX=$(realpath $(dirname $0))

mkdir -p build

cd build

curl "https://www.python.org/ftp/python/3.12.0/Python-3.12.0.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

bin/pip3 install numpy scipy pandas pycryptodome whoosh bcrypt passlib sympy xxhash base58 cryptography PyNaCl
1 change: 1 addition & 0 deletions packages/python/3.12.0/environment
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export PATH=$PWD/bin:$PATH
5 changes: 5 additions & 0 deletions packages/python/3.12.0/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"language": "python",
"version": "3.12.0",
"aliases": ["py", "py3", "python3", "python3.12"]
}
3 changes: 3 additions & 0 deletions packages/python/3.12.0/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

python3.12 "$@"
7 changes: 7 additions & 0 deletions packages/python/3.12.0/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
working = True

match working:
case True:
print("OK")
case False:
print()
Loading