| 1 | Add an environment variable to python-sip that extends its search
|
| 2 | directories for .sip files.
|
| 3 |
|
| 4 | It seems that we cannot easily change the destination folder of these
|
| 5 | files though, so this variable must be set on a per-package basis (and
|
| 6 | non through search-path).
|
| 7 |
|
| 8 | |
| 9 | |
| 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 = []
|