Skip to content
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

Add several Python3 rules for RHEL/CentOS #20842

Merged
merged 1 commit into from
Apr 10, 2019
Merged

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Apr 9, 2019

These packages are all part of Fedora EPEL 7.

The RPM macro python3_pkgversion resolves to the package version number of the primary Python 3 version in each distribution. This is true in Fedora and EPEL. Currently, python3_pkgversion resolves to 3 on Fedora and 36 in EPEL 7. It is likely that RHEL 8 will use a different Python 3 version, and since it will ship with the base OS, python3_pkgversion will likely resolve to 3 for that release.

By using the macro, we can ensure that we're always getting packages for the default version of python 3, which has changed in the past, and also avoiding creating separate rules for EPEL 7 and 8.

The Fedora packages site doesn't do well for Python 3 EPEL packages, but here is the result of listing the resolved keys on CentOS 7, demonstrating that each package is available from the epel repository.

$ yum list available --show-duplicates python36-devel python36-empy python36-lark-parser python36-mock python36-numpy python36-setuptools python36-psutil python36-pyflakes python36-pygraphviz python36-pytest
Available Packages
python36-setuptools python36-PyYAML
python36-PyYAML.x86_64       3.11-4.el7       epel
python36-devel.x86_64        3.6.6-5.el7      epel
python36-empy.noarch         3.3.3-2.el7      epel
python36-lark-parser.noarch  0.6.4-6.el7      epel
python36-mock.noarch         2.0.0-2.el7      epel
python36-numpy.x86_64        1.10.4-7.el7     epel
python36-psutil.x86_64       2.2.1-5.el7      epel
python36-pyflakes.noarch     1.6.0-4.el7      epel
python36-pygraphviz.x86_64   1.3-2.rc2.el7.2  epel
python36-pytest.noarch       2.9.2-3.el7      epel
python36-setuptools.noarch   39.2.0-3.el7     epel

@cottsay cottsay requested a review from a team as a code owner April 9, 2019 23:16
@cottsay cottsay added the rosdep Issue/PR is for a rosdep key label Apr 9, 2019
@cottsay cottsay merged commit fc3aae2 into ros:master Apr 10, 2019
@cottsay cottsay deleted the epel_python3 branch April 10, 2019 18:31
andre-rosa pushed a commit to andre-rosa/rosdistro that referenced this pull request May 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rosdep Issue/PR is for a rosdep key
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants