From 0e35b64c1f751cc8a7a8a0fac25828a8eab24714 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 2 Mar 2016 19:24:28 +0100 Subject: 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. --- base/common/python/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'base/common/python') 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( -- cgit