File tree 3 files changed +12
-11
lines changed
3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change
1
+ auditwheel>=3.0.0
2
+ wheel==0.31.1
Original file line number Diff line number Diff line change 1
1
attrs >= 19.2.0
2
- auditwheel ; sys_platform == "linux"
3
2
black
4
3
hypothesis
5
4
invoke
6
5
pytest >= 4.3.1
7
6
setuptools >= 45.0.0
8
7
twine
9
- wheel == 0.31.1 ; sys_platform == "linux"
10
- wheel >= 0.33.5 ; sys_platform != "linux"
8
+ wheel >= 0.33.6
Original file line number Diff line number Diff line change @@ -42,14 +42,14 @@ def build(context):
42
42
env = {"CPPFLAGS" : "-Werror -Wno-deprecated-declarations" },
43
43
replace_env = False ,
44
44
)
45
- # if platform == "linux":
46
- # from sys import abiflags
47
-
48
- # for so in glob("*.so"):
49
- # context.run(
50
- # f"patchelf --remove-needed libpython{get_python_version()}{abiflags}.so.1.0 {so}",
51
- # echo=True,
52
- # )
45
+ if platform == "linux" :
46
+ from sys import abiflags
47
+
48
+ for so in glob ("*.so" ):
49
+ context .run (
50
+ f"patchelf --remove-needed libpython{ get_python_version ()} { abiflags } .so.1.0 { so } " ,
51
+ echo = True ,
52
+ )
53
53
context .run (f"{ executable } setup.py bdist_wheel" , echo = True )
54
54
WHEELS = glob ("dist/*.whl" )
55
55
assert WHEELS , "No wheels in dist!"
@@ -58,6 +58,7 @@ def build(context):
58
58
# We're typically eligible for manylinux1... or at least manylinux2010.
59
59
# This will remove the wheel if it was unchanged... but that will cause
60
60
# our assert to fail later, which is what we want!
61
+ context .run (f"pip install -r requirements-audit.txt" , echo = True )
61
62
for wheel in WHEELS :
62
63
context .run (f"auditwheel repair { wheel } -w dist" , echo = True )
63
64
remove (wheel )
You can’t perform that action at this time.
0 commit comments