Make patches apply --without tests
Some patches touch tests and we didn't include the test sources --without tests, leading to broken build. This was a long standing reoccurring problem. Now we always include and unpack tests sources, even when we don't run them.
This commit is contained in:
parent
eb1cbbd764
commit
7913cd9edf
@ -64,9 +64,7 @@ BuildRequires: python-wheel-wheel
|
||||
# git clone https://github.com/pypa/pip && cd pip
|
||||
# VERSION= # define the version you want
|
||||
# git checkout $VERSION && tar -czvf ../pip-$VERSION-tests.tar.gz tests/
|
||||
%if %{with tests}
|
||||
Source1: pip-%{version}-tests.tar.gz
|
||||
%endif
|
||||
|
||||
# Themes required to build the docs.
|
||||
%if %{with doc}
|
||||
@ -239,9 +237,8 @@ A Python wheel of pip to use with venv.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{srcname}-%{version}
|
||||
%if %{with tests}
|
||||
tar -xf %{SOURCE1}
|
||||
%endif
|
||||
|
||||
%if %{with doc}
|
||||
pushd docs/html
|
||||
tar -xf %{SOURCE2}
|
||||
@ -261,10 +258,8 @@ popd
|
||||
rm src/pip/_vendor/certifi/*.pem
|
||||
sed -i '/\.pem$/d' src/pip.egg-info/SOURCES.txt
|
||||
|
||||
%if %{with tests}
|
||||
# tests expect wheels in here
|
||||
ln -s %{python_wheeldir} tests/data/common_wheels
|
||||
%endif
|
||||
|
||||
|
||||
%build
|
||||
|
Loading…
Reference in New Issue
Block a user