2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 14:50:07 -07:00

python-gpep517: new at 15

This commit is contained in:
Owen Rafferty 2023-12-27 19:22:14 -06:00
parent 7e92c1b29a
commit 558430a5d0
No known key found for this signature in database
7 changed files with 43 additions and 0 deletions

13
extra/python-gpep517/build Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh -e
patch -p1 < default-bytecode-levels.patch
sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')"
mkdir -p "$1/$sitedir"
cp -pR gpep517 "$1/$sitedir"
python -m compileall "$1/$sitedir"
mkdir -p "$1/usr/bin"
cp gpep517.bin "$1/usr/bin/gpep517"
chmod 755 "$1/usr/bin/gpep517"

View File

@ -0,0 +1,3 @@
1b667c868cac2666242d3f655619286e2da926667f407ef992fba29caa80d80fe9
482b3562a2d6a9b273e8e2049bc29136643cad5002495cff0e1169c53ea8b6eb2b
236459f14ba3e57226f6c21df619d2ad6198b9d68a5af131c05f98faff05a167d2

View File

@ -0,0 +1 @@
python

View File

@ -0,0 +1,6 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
from gpep517.__main__ import main
if __name__ == "__main__":
sys.exit(main())

View File

@ -0,0 +1,16 @@
diff --git a/gpep517/__main__.py b/gpep517/__main__.py
index d519c75..2dc0b49 100644
--- a/gpep517/__main__.py
+++ b/gpep517/__main__.py
@@ -350,9 +350,9 @@ def add_install_args(parser):
f"(default: {sys.executable})")
group.add_argument("--optimize",
type=parse_optimize_arg,
- default=[],
+ default=[0],
help="Comma-separated list of optimization levels "
- "to compile bytecode for (default: none), pass 'all' "
+ "to compile bytecode for (default: 0), 0s 'all' "
"to enable all known optimization levels (currently: "
f"{', '.join(str(x) for x in ALL_OPT_LEVELS)})")

View File

@ -0,0 +1,3 @@
https://github.com/mgorny/gpep517/archive/v15/gpep517-v15.tar.gz
files/gpep517.bin
patches/default-bytecode-levels.patch

View File

@ -0,0 +1 @@
15 1