File tree 3 files changed +38
-0
lines changed
3 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -65,3 +65,6 @@ wheelhoust-*
65
65
tests /integration /testpackage /testpackage /testprogram
66
66
tests /integration /testpackage /testpackage /testprogram_nodeps
67
67
tests /integration /sample_extension /src /sample_extension.c
68
+
69
+ # Downloaded by test script
70
+ tests /integration /patchelf-0.17.2.1-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.musllinux_1_1_x86_64.whl
Original file line number Diff line number Diff line change @@ -62,7 +62,21 @@ def tests(session: nox.Session) -> None:
62
62
"""
63
63
posargs = session .posargs
64
64
extras = "coverage" if RUNNING_CI else "test"
65
+ session .install ("-U" , "pip" )
65
66
session .install ("-e" , f".[{ extras } ]" )
67
+ # for tests/integration/test_bundled_wheels.py::test_analyze_wheel_abi_static_exe
68
+ session .run (
69
+ "pip" ,
70
+ "download" ,
71
+ "--only-binary" ,
72
+ ":all:" ,
73
+ "--no-deps" ,
74
+ "--platform" ,
75
+ "manylinux1_x86_64" ,
76
+ "-d" ,
77
+ "./tests/integration/" ,
78
+ "patchelf==0.17.2.1" ,
79
+ )
66
80
if RUNNING_CI :
67
81
posargs .extend (["--cov" , "auditwheel" , "--cov-branch" ])
68
82
# pull manylinux images that will be used.
Original file line number Diff line number Diff line change @@ -117,6 +117,27 @@ def test_analyze_wheel_abi_bad_architecture():
117
117
)
118
118
119
119
120
+ def test_analyze_wheel_abi_static_exe (caplog ):
121
+ result = analyze_wheel_abi (
122
+ None ,
123
+ None ,
124
+ HERE
125
+ / "patchelf-0.17.2.1-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.musllinux_1_1_x86_64.whl" ,
126
+ frozenset (),
127
+ False ,
128
+ False ,
129
+ )
130
+ assert "setting architecture to x86_64" in caplog .text
131
+ assert "couldn't detect wheel libc, defaulting to" in caplog .text
132
+ assert result .policies .architecture == Architecture .x86_64
133
+ if Libc .detect () == Libc .MUSL :
134
+ assert result .policies .libc == Libc .MUSL
135
+ assert result .overall_policy .name .startswith ("musllinux_1_" )
136
+ else :
137
+ assert result .policies .libc == Libc .GLIBC
138
+ assert result .overall_policy .name == "manylinux_2_5_x86_64"
139
+
140
+
120
141
@pytest .mark .skipif (platform .machine () != "x86_64" , reason = "only checked on x86_64" )
121
142
def test_wheel_source_date_epoch (tmp_path , monkeypatch ):
122
143
wheel_build_path = tmp_path / "wheel"
You can’t perform that action at this time.
0 commit comments