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

rpmbuild: how to handle byte-compilation between RHEL6's python-2.6 and RHEL7/Fedora's python-2.7 #36

Open
ryran opened this issue Nov 10, 2016 · 0 comments
Assignees

Comments

@ryran
Copy link
Collaborator

ryran commented Nov 10, 2016

I mean, the rpm works on all versions now, but it includes byte-compiled files for python-2.7 which means every time someone runs it on RHEL6, it's generating those and then trying to write them.

The correct approach would be to have a separate rpm for RHEL6 vs RHEL7+ ... sigh.

https://fedoraproject.org/wiki/Packaging:Python#Files_to_include

The other ("incorrect") approach would be to exclude such files in the rpmbuild and have a postinstall script that generates them.

@ryran ryran self-assigned this Nov 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant