[opensuse-buildservice] py_requires RPM macro doesn't seem to expand
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I am trying to compile a python module by following this documentation: http://en.opensuse.org/Packaging/Python The problem I meet with my local OBS build is that it says "Failed build dependencies, can't find python". It looks like the %{py_requires} macro is not expanded at all. I tried another way by adding "BuildRequires: python = %{py_ver}.%{py_ver}", but it seems that the %{py_ver} macro also doesn't expand at all. The only way that works is adding python manually but without the version informatin. But then I get this rpmlint warning: python-rabbyt.i586: W: no-dependency-on python 2.6 Can you help me to clear out this issue ? Thanks, Vincent Petry -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkp1F3kACgkQSSdxpfEEQEyZ7ACfd+Htfi3wgOl57mst2T1SjbOa HfQAnA250p+4cSHAdaOsHA1nC4Z4lrls =lufj -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Dne neděle 02 Srpen 2009 06:35:05 Vincent Petry napsal(a):
Hi,
I am trying to compile a python module by following this documentation: http://en.opensuse.org/Packaging/Python
The problem I meet with my local OBS build is that it says "Failed build dependencies, can't find python". It looks like the %{py_requires} macro is not expanded at all.
I tried another way by adding "BuildRequires: python = %{py_ver}.%{py_ver}", but it seems that the %{py_ver} macro also doesn't expand at all.
Those macros are defined in /etc/rpm/macros.python, which are in python-base in openSUSE 11.1. I suggest you add the ``python-devel'' to BuildRequires, because it (or dependent packages) contains everything for PYthon packaging. Regards MV -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Michal, I used python-devel package in BuildRequires, and the %{py_requires} macro seem to work. The resulting rpm now depends on python = 2.6 Thank you very much ! Vincent Michal Vyskocil a écrit :
Dne neděle 02 Srpen 2009 06:35:05 Vincent Petry napsal(a):
Hi,
I am trying to compile a python module by following this documentation: http://en.opensuse.org/Packaging/Python
The problem I meet with my local OBS build is that it says "Failed build dependencies, can't find python". It looks like the %{py_requires} macro is not expanded at all.
I tried another way by adding "BuildRequires: python = %{py_ver}.%{py_ver}", but it seems that the %{py_ver} macro also doesn't expand at all.
Those macros are defined in /etc/rpm/macros.python, which are in python-base in openSUSE 11.1. I suggest you add the ``python-devel'' to BuildRequires, because it (or dependent packages) contains everything for PYthon packaging.
Regards MV -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iEYEARECAAYFAkp1pxoACgkQSSdxpfEEQEwG0ACgnspoc2KAFw8FCviP4uJqcQIe xWoAmgNo4a8bB7RflPPTZFDtClj79Nek =6Jqb -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Michal Vyskocil
-
Vincent Petry