mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-21 23:00:06 -07:00
python-gpep517: new at 15
This commit is contained in:
parent
7e92c1b29a
commit
558430a5d0
13
extra/python-gpep517/build
Executable file
13
extra/python-gpep517/build
Executable 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"
|
3
extra/python-gpep517/checksums
Normal file
3
extra/python-gpep517/checksums
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
1b667c868cac2666242d3f655619286e2da926667f407ef992fba29caa80d80fe9
|
||||||
|
482b3562a2d6a9b273e8e2049bc29136643cad5002495cff0e1169c53ea8b6eb2b
|
||||||
|
236459f14ba3e57226f6c21df619d2ad6198b9d68a5af131c05f98faff05a167d2
|
1
extra/python-gpep517/depends
Normal file
1
extra/python-gpep517/depends
Normal file
@ -0,0 +1 @@
|
|||||||
|
python
|
6
extra/python-gpep517/files/gpep517.bin
Executable file
6
extra/python-gpep517/files/gpep517.bin
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
|
from gpep517.__main__ import main
|
||||||
|
if __name__ == "__main__":
|
||||||
|
sys.exit(main())
|
16
extra/python-gpep517/patches/default-bytecode-levels.patch
Normal file
16
extra/python-gpep517/patches/default-bytecode-levels.patch
Normal 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)})")
|
||||||
|
|
3
extra/python-gpep517/sources
Normal file
3
extra/python-gpep517/sources
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
https://github.com/mgorny/gpep517/archive/v15/gpep517-v15.tar.gz
|
||||||
|
files/gpep517.bin
|
||||||
|
patches/default-bytecode-levels.patch
|
1
extra/python-gpep517/version
Normal file
1
extra/python-gpep517/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
15 1
|
Loading…
Reference in New Issue
Block a user