[opensuse-packaging] Trouble building the python2 version in a single-spec package
![](https://seccdn.libravatar.org/avatar/ca9789ca82712456ebe792c2e7528baa.jpg?s=120&d=mm&r=g)
Hi! I am currently trying to update python-dns-lexicon to the latest upstream version. This newer version pulls in three new dependencies which I have already packaged: - python-PyNameCheap - python-localzone - python-zeep I have already successfully packaged PyNameCheap and localzone, however I have trouble with zeep which pulls in aiohttp and aioresponse. aiohttp is a package which is currently set to build python3 packages only which would mean that python-dns-lexicon would be transitively python3-only which I wanted to avoid. aiohttp is currently broken anyway, so I am working on fixing that, too. The first thing I tried was to enable the python2 build of the package with the following change: -%{?!python_module:%define python_module() python3-%{**}} -%define skip_python2 1 +%{?!python_module:%define python_module() python-%{**} python3-%{**}} However, when trying to build python-aiohttp, I am still getting: unresolvable: nothing provides python2-devel >= 3.5.3 nothing provides python2-async_generator nothing provides python2-async_timeout >= 3.0 nothing provides python2-idna_ssl >= 1.0.0 nothing provides python2-multidict >= 4.0 nothing provides python2-yarl >= 1.0 I have already checked the project configuration for obvious problems and re-read the spec file multiple times, but I can't figure out what I am missing. Anyone got any idea? Adrian -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/ca9789ca82712456ebe792c2e7528baa.jpg?s=120&d=mm&r=g)
On 11/16/18 2:50 PM, John Paul Adrian Glaubitz wrote:
Forgot to link my working project: https://build.opensuse.org/project/show/home:glaubitz:branches:devel:languag... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/8352b2ca702e57abc768876768d1959f.jpg?s=120&d=mm&r=g)
John Paul Adrian Glaubitz píše v Pá 16. 11. 2018 v 14:50 +0100:
Hi Adrian, This is quite correct sadly, if the aiohttp is not optional in the package then the package is only python3 compatible. The aiohttp package we have is simply available only for python3.5 and newer. Even upstream declares it as such: https://pypi.org/project/aioh ttp/ HTH Tom -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/ca9789ca82712456ebe792c2e7528baa.jpg?s=120&d=mm&r=g)
On 11/16/18 3:22 PM, Tomáš Chvátal wrote:
Now that you saying that, I just realized that zeep's setup.py has: if sys.version_info > (3, 4, 2): async_require.append('aiohttp>=1.0') tests_require.append('aioresponses>=0.4.1') So, I'll just make the aio* dependency python3-only. Thanks for the input! Adrian -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
John Paul Adrian Glaubitz
-
Tomáš Chvátal