[opensuse-python] skip_python2 not working in SLE-12
Hi! I am currently cleaning up one of our internal OBS projects and noticed that python-multidict fails to build on SLE-12 because the skip_python2 variable seems to be ignored: [ 11s] RPM build errors: [ 11s] File not found by glob: /home/abuild/rpmbuild/BUILDROOT/python-multidict-4.5.2-0.x86_64/usr/lib64/python2.7/site-packages/* [ 11s] [ 11s] suse-laptop failed "build python-multidict.spec" at Wed Dec 4 09:12:03 UTC 2019. [ 11s] Does anyone know where it's defined? I tried updating python-rpm-macros but that didn't help. I also looked up the project config for devel:languages:python and couldn't find it either. The same applies for %{pythons} which is not available on SLE-12 distributions and causes problems when importing Python packages from Factory for SLE-12. Adrian N�����r��y隊Z)z{.��r�'��칻�&ޢ��������'��-���w�zf���^�ˬz������ ޮ�^�ˬz��
John Paul Adrian Glaubitz píše v St 04. 12. 2019 v 09:18 +0000:
Hi!
I am currently cleaning up one of our internal OBS projects and noticed that python-multidict fails to build on SLE-12 because the skip_python2 variable seems to be ignored:
[ 11s] RPM build errors: [ 11s] File not found by glob: /home/abuild/rpmbuild/BUILDROOT/python-multidict-4.5.2- 0.x86_64/usr/lib64/python2.7/site-packages/* [ 11s] [ 11s] suse-laptop failed "build python-multidict.spec" at Wed Dec 4 09:12:03 UTC 2019. [ 11s]
Does anyone know where it's defined? I tried updating python-rpm- macros but that didn't help. I also looked up the project config for devel:languages:python and couldn't find it either.
The same applies for %{pythons} which is not available on SLE-12 distributions and causes problems when importing Python packages from Factory for SLE-12.
The pythons are defined in prjconf (just search for PYTHON STUFF): https://build.opensuse.org/projects/openSUSE:Factory/prjconf Thus you need to ask maint-coord@ to define that variable for you to have it working in the prjconf of SLE projects you target. For SLE15 it is defined in the master project: https://build.suse.de/projects/SUSE:SLE-15:GA/prjconf
Hi! On 12/4/19 10:34 AM, Tomas Chvatal wrote:
The pythons are defined in prjconf (just search for PYTHON STUFF): https://build.opensuse.org/projects/openSUSE:Factory/prjconf
Thus you need to ask maint-coord@ to define that variable for you to have it working in the prjconf of SLE projects you target.
This definition requires "skip_python2" and "skip_python3" which is not available for SLE-12 at the moment. Where is it defined? Adrian N�����r��y隊Z)z{.��r�'��칻�&ޢ��������'��-���w�zf���^�ˬz������ ޮ�^�ˬz��
John Paul Adrian Glaubitz píše v St 04. 12. 2019 v 09:54 +0000:
Hi!
On 12/4/19 10:34 AM, Tomas Chvatal wrote:
The pythons are defined in prjconf (just search for PYTHON STUFF): https://build.opensuse.org/projects/openSUSE:Factory/prjconf
Thus you need to ask maint-coord@ to define that variable for you to have it working in the prjconf of SLE projects you target.
This definition requires "skip_python2" and "skip_python3" which is not available for SLE-12 at the moment.
Where is it defined?
Skip_python is defined in the actual spec-files, if you read the syntax it says: If skip_python2 is not defined then do nothing, otherwise set the value as python2 and if skip_python3 is not defined then do nothing, otherwise set the value as python3. Tom
On 12/4/19 10:59 AM, Tomas Chvatal wrote:
Where is it defined?
Skip_python is defined in the actual spec-files, if you read the syntax it says:
If skip_python2 is not defined then do nothing, otherwise set the value as python2 and if skip_python3 is not defined then do nothing, otherwise set the value as python3.
It has no effect for python-multidict on SLE-12. And there is no code that tests the condition. My question was poorly articulated: What I meant was what tests the condition so I can get the package to build in SLE-12? Adrian
participants (2)
-
John Paul Adrian Glaubitz
-
Tomas Chvatal