~ruther/guix-local

ref: b57b68aba645181b78bbdbef4ad908d60da03aa7 guix-local/gnu/packages/patches/python-sip-include-dirs.patch -rw-r--r-- 727 bytes
b57b68ab — Cayetano Santos gnu: open-logic: Move to hdl 30 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Add an environment variable to python-sip that extends its search
directories for .sip files.

It seems that we cannot easily change the destination folder of these
files though, so this variable must be set on a per-package basis (and
non through search-path).

--- sip/sipbuild/builder.py
+++ sip/sipbuild/builder.py
@@ -227,5 +227,9 @@
                     os.path.join(project.target_dir,
                             project.get_bindings_dir()))
 
+        # Add extra bindings from environment for GNU Guix
+        if 'SIP_INCLUDE_DIRS' in os.environ:
+            sip_include_dirs.extend(os.environ['SIP_INCLUDE_DIRS'].split(os.pathsep))
+
         # Generate the code for each set of bindings.
         api_files = []