[pygobject] setup.py: install .pc file into libdir
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] setup.py: install .pc file into libdir
- Date: Tue, 6 Feb 2018 17:40:37 +0000 (UTC)
commit 1de81a939711b9c2edb915b8bd9855ef9db12f02
Author: Christoph Reiter <reiter christoph gmail com>
Date: Tue Feb 6 18:14:08 2018 +0100
setup.py: install .pc file into libdir
To match what the autotools build does.
setup.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/setup.py b/setup.py
index 918a5654..96a0ceef 100755
--- a/setup.py
+++ b/setup.py
@@ -31,6 +31,7 @@ from setuptools import setup, find_packages
from distutils.core import Extension, Distribution, Command
from distutils.errors import DistutilsSetupError
from distutils.ccompiler import new_compiler
+from distutils.sysconfig import get_python_lib
from distutils import dir_util, log
@@ -730,7 +731,8 @@ class install_pkgconfig(Command):
for key, value in config.items():
content = content.replace("@%s@" % key, value)
- pkgconfig_dir = os.path.join(self.install_data, "share", "pkgconfig")
+ libdir = os.path.dirname(get_python_lib(True, True, self.install_data))
+ pkgconfig_dir = os.path.join(libdir, "pkgconfig")
self.mkpath(pkgconfig_dir)
target = os.path.join(pkgconfig_dir, "pygobject-3.0.pc")
with io.open(target, "w", encoding="utf-8") as h:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]