Skip to content

Commit

Permalink
Merge pull request #630 from Aetheridon/master
Browse files Browse the repository at this point in the history
Added files for Python 3.11.0
  • Loading branch information
HexF authored Nov 1, 2023
2 parents 37141e8 + 18743a3 commit f785f65
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.11.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.11.0/Python-3.11.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.11.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.11.0/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"language": "python",
"version": "3.11.0",
"aliases": ["py", "py3", "python3", "python3.11"]
}
3 changes: 3 additions & 0 deletions packages/python/3.11.0/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

python3.11 "$@"
7 changes: 7 additions & 0 deletions packages/python/3.11.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 f785f65

Please sign in to comment.