Skip to content

Commit

Permalink
Merge pull request #633 from Aetheridon/master
Browse files Browse the repository at this point in the history
Python 3.12.0 support
  • Loading branch information
HexF authored Nov 3, 2023
2 parents a7fa1b4 + c97324b commit b46690d
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
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()

0 comments on commit b46690d

Please sign in to comment.