projects/guix·blob python-team · refs

19 lines · 727 B

1Add an environment variable to python-sip that extends its search
2directories for .sip files.
3
4It seems that we cannot easily change the destination folder of these
5files though, so this variable must be set on a per-package basis (and
6non through search-path).
7
8--- sip/sipbuild/builder.py
9+++ sip/sipbuild/builder.py
10@@ -227,5 +227,9 @@
11 os.path.join(project.target_dir,
12 project.get_bindings_dir()))
13
14+ # Add extra bindings from environment for GNU Guix
15+ if 'SIP_INCLUDE_DIRS' in os.environ:
16+ sip_include_dirs.extend(os.environ['SIP_INCLUDE_DIRS'].split(os.pathsep))
17+
18 # Generate the code for each set of bindings.
19 api_files = []