[Rpm-maint] [rpm-software-management/rpm] rpm python tests fails if python2-rpm is not installed (#599)

Tomasz Kłoczko notifications at github.com
Mon Nov 19 20:34:27 UTC 2018


So I've added  --enable-python to configure options, I've commented out in the spec %build 
```
#pushd python
#%{__python2} setup.py build
#%{__python3} setup.py build
#popd
```
and in %install
```
#pushd python
#%{__python2} setup.py install --skip-build --root %{buildroot}
#%{__python3} setup.py install --skip-build --root %{buildroot}
#popd

```
I see that autoconf is able to find python2:
```
checking for a Python interpreter with version >= 2.6... python2
checking for python2... /usr/bin/python2
checking for python2 version... 2.7
checking for python2 platform... linux2
checking for python2 script directory... ${prefix}/lib/python2.7/site-packages
checking for python2 extension module directory... ${exec_prefix}/lib64/python2.7/site-packages
checking for PYTHON... yes
```
and check target still fails as it is in my initial report.
In tests/Makefile.am python tests are fired unconditionally so doesn't matter how source code is configured python tests are executed.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/599#issuecomment-440032603
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20181119/5e42c196/attachment.html>


More information about the Rpm-maint mailing list