diff options
author | Felix Geyer <debfx@fobos.de> | 2019-07-31 16:26:13 -0600 |
---|---|---|
committer | Tom Hromatka <tom.hromatka@oracle.com> | 2019-08-02 12:04:52 -0600 |
commit | 7a882ddbc13be8d398fe38c1e7b38bb33b9931b9 (patch) | |
tree | b8d2fc51b7a18630af3b66f70f75e8ad494c616e | |
parent | 933b096abe76a96cdbc6d17afcab64a1cc0c1752 (diff) | |
download | libseccomp-7a882ddbc13be8d398fe38c1e7b38bb33b9931b9.tar.gz |
python: install the python extension to the root package dir
Commit 8ad3638ea9023c3948976dfadebd1554380a31c9 effectively added libseccomp/
to the install path of the python extension.
This changed the import module name from "seccomp" to "libseccomp.seccomp",
breaking existing users.
Revert the install path like it was before 2.4.0
Signed-off-by: Felix Geyer <debfx@fobos.de>
[PM: tweaked the subject line]
Signed-off-by: Paul Moore <paul@paul-moore.com>
(cherry picked from commit ff7fc73bdf4602323ce320a2094c006c9c3e4d42)
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Acked-by: Paul Moore <paul@paul-moore.com>
-rw-r--r-- | src/python/Makefile.am | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/python/Makefile.am b/src/python/Makefile.am index 3a34b0a..f71ec24 100644 --- a/src/python/Makefile.am +++ b/src/python/Makefile.am @@ -40,12 +40,12 @@ build: ../libseccomp.la libseccomp.pxd seccomp.pyx setup.py ${PY_BUILD} && touch build install-exec-local: build - ${PY_INSTALL} --install-lib=${DESTDIR}/${pkgpythondir} \ - --record=${DESTDIR}/${pkgpythondir}/install_files.txt + ${PY_INSTALL} --install-lib=${DESTDIR}/${pyexecdir} \ + --record=${DESTDIR}/${pyexecdir}/install_files.txt uninstall-local: - cat ${DESTDIR}/${pkgpythondir}/install_files.txt | xargs ${RM} -f - ${RM} -f ${DESTDIR}/${pkgpythondir}/install_files.txt + cat ${DESTDIR}/${pyexecdir}/install_files.txt | xargs ${RM} -f + ${RM} -f ${DESTDIR}/${pyexecdir}/install_files.txt clean-local: [ ${srcdir} == ${builddir} ] || ${RM} -f ${builddir}/seccomp.pyx |