You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all! Awesome work creating this tool, we (Arrikto) are trying to use it to package our Python dependencies.
We are currently having an issue with the generated SPEC files for EPEL 7.
For example, we are trying to build a package for packagemockldap.
These are the generated dependencies:
However, some of those will not work, because there are only python-X packages, not python2-X packages.
I would expect dependencies in EPEL7 to use the unversioned format because:
If it's an old dependency, it will work.
If a newer, versioned package has been released, it should declare that it provides the unversioned package.
I see that this format was removed in #128. However, this leads to SPEC files that cannot find the packages they need.
In addition, the SPEC files generated by pyp2rpm for EPEL 7, with the epel7 template, provide only python2-x and not python-x.
is that the correct way to do this is by using the python_provide macro.
I see that this macro is available in my RHEL 7 host, so we should be able to use it in the EPEL template.
I also see that other templates are already using it (e.g., the Fedora one).
In conclusion, our proposal is to:
Use unversioned python packages for dependencies in EPEL 7.
Provide the unversioned package in SPECs generated with pyp2rpm, with the python_provide directive.
What do you think?
The text was updated successfully, but these errors were encountered:
Hi all! Awesome work creating this tool, we (Arrikto) are trying to use it to package our Python dependencies.
We are currently having an issue with the generated SPEC files for EPEL 7.
For example, we are trying to build a package for package
mockldap
.These are the generated dependencies:
However, some of those will not work, because there are only
python-X
packages, notpython2-X
packages.I would expect dependencies in EPEL7 to use the unversioned format because:
I see that this format was removed in #128. However, this leads to SPEC files that cannot find the packages they need.
In addition, the SPEC files generated by
pyp2rpm
for EPEL 7, with theepel7
template, provide onlypython2-x
and notpython-x
.My understanding from reading these sources:
is that the correct way to do this is by using the
python_provide
macro.I see that this macro is available in my RHEL 7 host, so we should be able to use it in the EPEL template.
I also see that other templates are already using it (e.g., the Fedora one).
In conclusion, our proposal is to:
pyp2rpm
, with thepython_provide
directive.What do you think?
The text was updated successfully, but these errors were encountered: