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

Installation: Clarify Python 3 on CentOS #78

Merged
merged 1 commit into from
Oct 11, 2020

Conversation

bastelfreak
Copy link
Contributor

CentOS 7 has Python 3.6 in the official repositories since some time.
This allows us to get an almost modern Python interpreter onto the
system without fiddling with PATH environment varible like SCL does.

Description

This PR just updates the installation instructions for CentOS. Since they have now Python 3.6 in the base repo, we can simply rely on that instead of adding another repo. While I'm not against more repos, SCL in particular can get a bit tricky because of their setup.

Related Issues

Motivation and Context

Make SCL optional

Tests

Since this is just a docs change, I didn't touch any tests. Of course I tried this locally an can confirm that the base repo ships python3.6 and that hyperglass works with that.

CentOS 7 has Python 3.6 in the official repositories since some time.
This allows us to get an almost modern Python interpreter onto the
system without fiddling with PATH environment varible like SCL does.
@netlify
Copy link

netlify bot commented Sep 16, 2020

Deploy request for condescending-feynman-b53fb3 pending review.

Review with commit 9c6f189

https://app.netlify.com/sites/condescending-feynman-b53fb3/deploys

@thatmattlove
Copy link
Owner

Hello,

The current CentOS installation docs reflect changes recommended by #31, #62, some Gitter/Telegram chats from CentOS users, as well as my own (later) tests with CentOS 7. Now, I'm not a frequent CentOS user as you can probably tell, so I'm not 100% certain which packages are required under which circumstances. I do want the docs to be easy and accurate, though.

Since they have now Python 3.6 in the base repo, we can simply rely on that instead of adding another repo.

Does this mean that there was a recent-ish change to the CentOS repositories, perhaps after the docs changes in #31/#62, which means we can update the docs? Just want to make sure I fully understand.

Thanks!
Matt

@bastelfreak
Copy link
Contributor Author

If I remember it correctly, back in the days when CentOS 7 was released, it had no python 3 version. Python 3.4 was available via EPEL. Later Python 3.6 was introduced (to EPEL I think, and later moved to base). However, the package python3 is available in the base repository (which is enabled by default and not a 3rd party one). This package currently brings Python 3.6.8. You can see the changelog here: https://centos.pkgs.org/7/centos-x86_64/python3-3.6.8-13.el7.x86_64.rpm.html

It's available since march 2019. It's just not installed by default and the /usr/bin/python symlink always points to python 2 on CentOS 7. That might confuse people.

@bastelfreak
Copy link
Contributor Author

I did some digging into the old centos 7 releases. their 7.5.1804 release did not contain python3 in the main repos: http://vault.centos.org/7.5.1804/cr/x86_64/Packages/

after that it got moved from epel to the base repo and is available since 7.6.1810: http://vault.centos.org/7.6.1810/cr/x86_64/Packages/

@bastelfreak bastelfreak reopened this Sep 19, 2020
@bastelfreak
Copy link
Contributor Author

closed and reopened to retrigger travis

@thatmattlove thatmattlove merged commit b2db509 into thatmattlove:v1.0.0 Oct 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants