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

Fix system python and added yum wrapper #14

Merged

Conversation

aloysbaillet
Copy link
Contributor

@aloysbaillet aloysbaillet commented Sep 9, 2019

This fixes #13
The install_python.sh now also creates a /usr/local/bin/yum script that unsets the PYTHONPATH and PATH and LD_LIBRARY_PATH to ensure the normal python is used so yum can function normally.
This makes updating the aswf/ci-* images simple as one only need to run sudo yum install ... for additional packages.

bcipriano
bcipriano previously approved these changes Sep 9, 2019
Copy link
Contributor

@bcipriano bcipriano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! A bit unfortunate that we have to do this at all, but having played around in the past with overriding the system-level Python I remember what it's like :)

My only comment is: it would be nice to add a comment block at the top of the script explaining the purpose of the script and why, for example, we need to do all this rather than just using the built-in or yum-installed python version.

Signed-off-by: Aloys Baillet <[email protected]>
@aloysbaillet
Copy link
Contributor Author

I created an explicit utility script called run-with-system-python that I'm calling internally to avoid breaking the system python and is used by the yum wrapper, and I've added a few comments!

Copy link
Contributor

@bcipriano bcipriano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks great.

@aloysbaillet aloysbaillet merged commit 0ec59b5 into AcademySoftwareFoundation:master Sep 10, 2019
@aloysbaillet aloysbaillet deleted the fix-system-python branch September 11, 2019 00:15
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.

Yum broken in most ci images
2 participants