]> git.pld-linux.org Git - packages/python-distlib.git/commitdiff
- disable test_mount_extensions test on x32, it tries to mount x86_64 wheel
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 29 Mar 2020 06:13:24 +0000 (08:13 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 29 Mar 2020 06:13:24 +0000 (08:13 +0200)
python-distlib.spec

index c589541c8d1f625da56160de6f4d4533a33c76b8..f221f8f7322256a4a1b8bcbed82ab8fbbc078f0f 100644 (file)
@@ -28,6 +28,7 @@ BuildRequires:        python3-modules >= 1:3.2
 %endif
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: sed >= 4.0
 BuildRequires: unzip
 Requires:      python-modules >= 1:2.7
 BuildArch:     noarch
@@ -60,6 +61,11 @@ wysokopoziomowe API ułatwiające pakietowanie.
 %patch0 -p1
 %patch1 -p1
 
+%if "%{_host_cpu}" == "x32"
+# distlib.wheel doesn't distinguish x32 from x86_64
+%{__sed} -i -e 's/test_mount_extensions/disabled&/' tests/test_wheel.py
+%endif
+
 %build
 %if %{with python2}
 %py_build
This page took 0.265753 seconds and 4 git commands to generate.