|
Bugzilla – Full Text Bug Listing |
| Summary: | python-rpm-macros different dependency generated python-six | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Ferdinand Thiessen <rpm> |
| Component: | Other | Assignee: | Matej Cepl <mcepl> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | code, mcepl, ngompa13 |
| Version: | Current | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| See Also: | https://bugzilla.opensuse.org/show_bug.cgi?id=1178257 | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Ferdinand Thiessen
2021-06-04 13:39:14 UTC
It is this https://github.com/openSUSE/python-rpm-macros/pull/40 … the result is half-hearted effort, which was never used. Moreover, whole huge changes of generating python36-foo, python38-foo, etc. packages went over this, and I have really no clue, what is the status of it. If anybody wants to recover the effort and make it work, I will gladly take a look, but so far it seems like something completely useless added just to look like Fedora. Neal? (In reply to Matej Cepl from comment #1) > It is this https://github.com/openSUSE/python-rpm-macros/pull/40 … the > result is half-hearted effort, which was never used. I have been trying to get it fully properly implemented for over a year. It's been very hard to actually get this done, and for the past few months, I focused primarily on Leap 15.3 for other reasons. > Moreover, whole huge changes of generating python36-foo, python38-foo, > etc. packages went over this, and I have really no clue, what is the status > of it. If anybody wants to recover the effort and make it work, I will > gladly take a look, but so far it seems like something completely > useless added just to look like Fedora. > > Neal? There have been improvements to the generator upstream[1] to support setting default/non-default Python versions so that these work correctly in a multi-Python world. I'm planning on looking into this shortly. Also note, I was one of the original developers on the generator, and it originates from Mandriva, not Fedora. I approached *all* the major RPM distros at the same time, only Fedora didn't shoot me down immediately. So your characterization is not only wrong, it's personally insulting. Please refrain from making assumptions as such. [1]: https://github.com/rpm-software-management/python-rpm-packaging So for now I guess I should not use it? Thought it would make packaging easier, to be honest I simply expected it to read requirements.txt / setup.py and put a "pythonPYVER-" in front of the pypi name (as this should be the name of the openSUSE package). But yes maybe it is not that simple as RPM is case sensitive but python module names are not (e.g. ConfigArgParse (pypi name) is called python-configargparse on openSUSE so python38-ConfigArgParse would not work). Note that most packages actually provide the python3.Xdist(foo) symbol. Only a few packages don't. And python-six is a part of the latter, because it is in the bootstrap chain of setuptools and cannot depend on it. You see it in the build log: [ 26s] Traceback (most recent call last): [ 26s] File "/usr/lib/rpm/pythondistdeps.py", line 231, in <module> [ 26s] from pkg_resources import Distribution, FileMetadata, PathMetadata, Requirement, parse_version [ 26s] ModuleNotFoundError: No module named 'pkg_resources' [ 26s] Provides: python3-six = 1.16.0-1.1 python38-six = 1.16.0-1.1 See https://bugzilla.opensuse.org/show_bug.cgi?id=1178257 (In reply to Ferdinand Thiessen from comment #3) > So for now I guess I should not use it? > > Thought it would make packaging easier, to be honest I simply expected it to > read requirements.txt / setup.py and put a "pythonPYVER-" in front of the > pypi name (as this should be the name of the openSUSE package). > But yes maybe it is not that simple as RPM is case sensitive but python > module names are not (e.g. ConfigArgParse (pypi name) is called > python-configargparse on openSUSE so python38-ConfigArgParse would not work). That is a bug. Repackaging under the correct name (it wouldn't be the first one) would be very welcomed. (In reply to Benjamin Greiner from comment #4) > Note that most packages actually provide the python3.Xdist(foo) symbol. Only > a few packages don't. And python-six is a part of the latter, because it is > in the bootstrap chain of setuptools and cannot depend on it. You see it in > the build log: > > [ 26s] Traceback (most recent call last): > [ 26s] File "/usr/lib/rpm/pythondistdeps.py", line 231, in <module> > [ 26s] from pkg_resources import Distribution, FileMetadata, > PathMetadata, Requirement, parse_version > [ 26s] ModuleNotFoundError: No module named 'pkg_resources' > [ 26s] Provides: python3-six = 1.16.0-1.1 python38-six = 1.16.0-1.1 > > See https://bugzilla.opensuse.org/show_bug.cgi?id=1178257 Ben, does this mean this should be closed as WONTFIX? To the contrary, it has been fixed by sr#900811 [ 36s] Traceback (most recent call last): [ 36s] File "/usr/lib/rpm/pythondistdeps.py", line 231, in <module> [ 36s] from pkg_resources import Distribution, FileMetadata, PathMetadata, Requirement, parse_version [ 36s] ModuleNotFoundError: No module named 'pkg_resources' [ 36s] Provides: python3-six = 1.16.0-105.1 python3.8dist(six) = 1.16.0 python38-six = 1.16.0-105.1 python3dist(six) = 1.16.0 This is an autogenerated message for OBS integration: This bug (1186870) was mentioned in https://build.opensuse.org/request/show/992369 Factory / python-pyparsing SUSE-RU-2022:4491-1: An update that has 5 recommended fixes and contains two features can now be installed. Category: recommended (important) Bug References: 1111657,1144506,1148184,1186870,1199282 CVE References: JIRA References: PM-3243,SLE-24629 Sources used: openSUSE Leap Micro 5.2 (src): libsodium-1.0.18-150000.4.6.1 openSUSE Leap 15.4 (src): libsodium-1.0.18-150000.4.6.1, python-PyNaCl-1.4.0-150000.3.6.6, python-sphinx_rtd_theme-0.5.1-150000.3.5.1 openSUSE Leap 15.3 (src): libsodium-1.0.18-150000.4.6.1, python-PyNaCl-1.4.0-150000.3.6.6, python-hypothesis-3.76.0-150000.3.3.1, python-sphinx_rtd_theme-0.5.1-150000.3.5.1 SUSE Linux Enterprise Module for Python2 15-SP3 (src): python-PyNaCl-1.4.0-150000.3.6.6 SUSE Linux Enterprise Module for Public Cloud 15-SP2 (src): python-sphinx_rtd_theme-0.5.1-150000.3.5.1 SUSE Linux Enterprise Module for Packagehub Subpackages 15-SP4 (src): python-sphinx_rtd_theme-0.5.1-150000.3.5.1 SUSE Linux Enterprise Module for Packagehub Subpackages 15-SP3 (src): python-sphinx_rtd_theme-0.5.1-150000.3.5.1 SUSE Linux Enterprise Module for Basesystem 15-SP4 (src): libsodium-1.0.18-150000.4.6.1, python-PyNaCl-1.4.0-150000.3.6.6, python-sphinx_rtd_theme-0.5.1-150000.3.5.1 SUSE Linux Enterprise Module for Basesystem 15-SP3 (src): libsodium-1.0.18-150000.4.6.1, python-PyNaCl-1.4.0-150000.3.6.6, python-sphinx_rtd_theme-0.5.1-150000.3.5.1 SUSE Linux Enterprise Micro 5.3 (src): libsodium-1.0.18-150000.4.6.1 SUSE Linux Enterprise Micro 5.2 (src): libsodium-1.0.18-150000.4.6.1 SUSE Linux Enterprise Micro 5.1 (src): libsodium-1.0.18-150000.4.6.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination. SUSE-RU-2023:2216-1: An update that contains two features and has two recommended fixes can now be installed. Category: recommended (important) Bug References: 1186870, 1199282 Jira References: PM-3243, SLE-24629 Sources used: openSUSE Leap Micro 5.3 (src): python-packaging-21.3-150200.3.3.1 openSUSE Leap 15.4 (src): python-packaging-21.3-150200.3.3.1 SUSE Linux Enterprise Micro for Rancher 5.3 (src): python-packaging-21.3-150200.3.3.1 SUSE Linux Enterprise Micro 5.3 (src): python-packaging-21.3-150200.3.3.1 SUSE Linux Enterprise Micro for Rancher 5.4 (src): python-packaging-21.3-150200.3.3.1 SUSE Linux Enterprise Micro 5.4 (src): python-packaging-21.3-150200.3.3.1 Basesystem Module 15-SP4 (src): python-packaging-21.3-150200.3.3.1 SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src): python-packaging-21.3-150200.3.3.1 SUSE Linux Enterprise High Performance Computing ESPOS 15 SP3 (src): python-packaging-21.3-150200.3.3.1 SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): python-packaging-21.3-150200.3.3.1 SUSE Linux Enterprise Real Time 15 SP3 (src): python-packaging-21.3-150200.3.3.1 SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): python-packaging-21.3-150200.3.3.1 SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): python-packaging-21.3-150200.3.3.1 SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): python-packaging-21.3-150200.3.3.1 SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): python-packaging-21.3-150200.3.3.1 SUSE Manager Proxy 4.2 (src): python-packaging-21.3-150200.3.3.1 SUSE Manager Retail Branch Server 4.2 (src): python-packaging-21.3-150200.3.3.1 SUSE Manager Server 4.2 (src): python-packaging-21.3-150200.3.3.1 SUSE Enterprise Storage 7.1 (src): python-packaging-21.3-150200.3.3.1 SUSE Enterprise Storage 7 (src): python-packaging-21.3-150200.3.3.1 SUSE Linux Enterprise Micro 5.1 (src): python-packaging-21.3-150200.3.3.1 SUSE Linux Enterprise Micro 5.2 (src): python-packaging-21.3-150200.3.3.1 SUSE Linux Enterprise Micro for Rancher 5.2 (src): python-packaging-21.3-150200.3.3.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination. |