summaryrefslogtreecommitdiff
blob: 13015af9c3312706835dfe53710a13a01ee7542c (plain)
1
2
3
4
5
6
7
8
9
10
11
--- setup.py
+++ setup.py
@@ -109,7 +109,7 @@
   ext_modules = [cairo],
   data_files = [
     ('include/pycairo', ['src/pycairo.h']),
-    ('lib/pkgconfig', [pkgconfig_file]),
+    (os.environ.get('PKGCONFIG_DIR', 'lib/pkgconfig'), [pkgconfig_file]),
     (os.path.join(dsy.get_python_lib(), 'cairo'),
      ['src/__init__.py']),
     ],