diff options
author | Christian Heimes <cheimes@redhat.com> | 2016-03-02 19:24:28 +0100 |
---|---|---|
committer | Christian Heimes <cheimes@redhat.com> | 2016-03-03 21:44:23 +0100 |
commit | 0e35b64c1f751cc8a7a8a0fac25828a8eab24714 (patch) | |
tree | ef68de896af93b309f32615d8e2a63490f56a805 /base/common/python | |
parent | ce049a83d78c30d0664c5d337766b222ef89202b (diff) | |
download | pki-0e35b64c1f751cc8a7a8a0fac25828a8eab24714.tar.gz pki-0e35b64c1f751cc8a7a8a0fac25828a8eab24714.tar.xz pki-0e35b64c1f751cc8a7a8a0fac25828a8eab24714.zip |
Simplify Python package installation
* The cmake files now copy just *.py into the installation directory.
This ensures that no stale pyc files or __pycache__ directories are
copied. rpmbuilder takes care of pyc/pyo compilation on Fedora and
RHEL.
* The pki-core.spec file uses python2 macros. In case of RHEL missing
macros are defined on the top of the file.
* A bug in the python_sitelib macros has been fixed. rpmbuilder doesn't
like lines breaks.
Diffstat (limited to 'base/common/python')
-rw-r--r-- | base/common/python/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/common/python/CMakeLists.txt b/base/common/python/CMakeLists.txt index a16459775..f6e57b949 100644 --- a/base/common/python/CMakeLists.txt +++ b/base/common/python/CMakeLists.txt @@ -44,6 +44,8 @@ install( pki DESTINATION ${PYTHON_SITE_PACKAGES} + FILES_MATCHING PATTERN + *.py ) install( |