commit a2ee90a
hovercats
·
2024-05-02 15:33:31 +0000 UTC
parent e352c3f
python-gpep517: make patch more consistent and descriptive
4 files changed,
+17,
-3
+1,
-1
1@@ -1,6 +1,6 @@
2 #!/bin/sh -e
3
4-patch -p1 < default-bytecode-levels.patch
5+patch -p1 < 0001-change-default-opt-level-to-0.patch
6
7 sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')"
8
+1,
-1
1@@ -1,3 +1,3 @@
2 1b667c868cac2666242d3f655619286e2da926667f407ef992fba29caa80d80fe9
3 482b3562a2d6a9b273e8e2049bc29136643cad5002495cff0e1169c53ea8b6eb2b
4-236459f14ba3e57226f6c21df619d2ad6198b9d68a5af131c05f98faff05a167d2
5+5354f1bed53c495c30aa89a1d51c4808ef824164d75a39d2c176aed61879f5513e
R repo/python-gpep517/patches/default-bytecode-levels.patch =>
repo/python-gpep517/patches/0001-change-default-opt-level-to-0.patch
+14,
-0
1@@ -1,3 +1,14 @@
2+From 44b878afd7bec90538b04a4d90894a4279ab4835 Mon Sep 17 00:00:00 2001
3+From: ptrcnull <git@ptrcnull.me>
4+Date: Fri, 17 Nov 2023 19:19:19 +0100
5+Subject: [PATCH] change default opt level to 0
6+
7+that's also what python-installer uses, and it would
8+make `gpep517 install-wheel` invokations more neat
9+---
10+ gpep517/__main__.py | 4 ++--
11+ 1 file changed, 2 insertions(+), 2 deletions(-)
12+
13 diff --git a/gpep517/__main__.py b/gpep517/__main__.py
14 index d519c75..2dc0b49 100644
15 --- a/gpep517/__main__.py
16@@ -14,3 +25,6 @@ index d519c75..2dc0b49 100644
17 "to enable all known optimization levels (currently: "
18 f"{', '.join(str(x) for x in ALL_OPT_LEVELS)})")
19
20+--
21+2.44.0
22+
+1,
-1
1@@ -1,3 +1,3 @@
2 https://github.com/mgorny/gpep517/archive/v15/gpep517-v15.tar.gz
3 files/gpep517.bin
4-patches/default-bytecode-levels.patch
5+patches/0001-change-default-opt-level-to-0.patch