-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ceph.spec.in: python-argparse only in Python 2.6 #4970
Conversation
This looks good. But, to prevent this from happening we should start checking for the compatibility problems. This is defined in http://tracker.ceph.com/issues/8458 |
@alfredodeza So I should make a |
@smithfarm I think that work with the tox.ini is completed. However I am not sure what would be the right way to implement it as part of The tox.ini for ceph-disk is here: https://github.com/ceph/ceph/blob/master/src/test/python/ceph-disk/tox.ini And it does work correctly. |
@alfredodeza Would you be willing to implement a |
Looks good to me Reviewed-by: Alfredo Deza adeza@redhat.com |
Thanks to @tchaikov, the gitbuilders are now crunching |
The basic idea looks good to me. Thanks for fixing this. At the moment, RHEL 7's python package provides the
@smithfarm , what would the appropriate SLES conditional be there? I'm sorry I don't know specifically which SUSE version ships Python 2.6. |
All of the more recent SLE and openSUSE boxes I could find were running Python 2.7. Based on https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto I'm guessing an appropriate conditional would be
but I will try to find out with more certainty. |
ok cool, thanks @smithfarm |
b851a7e
to
482de19
Compare
I think we can simplify the Since this is so complicated, we don't need to copy and paste the whole That will also have the nice side effect of eliminating the duplicate |
argparse is a widely-used Python module for parsing command-line arguments. Ceph makes heavy use of Python scripts, both in the build environment and on cluster nodes and clients. Until Python 2.6, argparse was distributed separately from Python proper. As of 2.7 it is part of the Python standard library. Although the python package in a given distro may or may not Provide: python-argparse, this cannot be relied upon. Therefore, this commit puts appropriate conditionals around Requires: python-argparse and BuildRequires: python-argparse. It does so for Red Hat/CentOS and SUSE only, because the last Fedora version with Python 2.6 was Fedora 13, which is EOL. argparse is required by both the ceph and ceph-common packages, but since ceph requires ceph-common, the argparse Requires and BuildRequires need only appear once, under ceph-common. http://tracker.ceph.com/issues/12034 Fixes: ceph#12034 Signed-off-by: Nathan Cutler <ncutler@suse.com>
482de19
to
23171c9
Compare
@ktdreyer That certainly makes it a lot simpler! |
Looks great! merging |
ceph.spec.in: python-argparse only in Python 2.6 Reviewed-by: Alfredo Deza <adeza@redhat.com> Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
@ktdreyer Thanks! Can you delete the |
Sure!
|
@dachary I marked the original issue "Pending Backport" and created the corresponding backport tracker issues. |