aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/python-sip-include-dirs.patch
blob: f2ef8fc1b223a50c9f9cef6af7692525cfa0d55e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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	2023-03-22 09:06:37.588792878 +0100
+++ sip/sipbuild/builder.py	2023-03-22 09:10:35.830181134 +0100
@@ -254,6 +254,10 @@
                     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 sip.h file for the shared sip module.
             copy_sip_h(abi_major_version, project.build_dir,
                     project.sip_module, version_info=project.version_info)
07-25 19:11:36 +0200'>2020-07-25utils: Move <location> and '&error-location' to (guix diagnostics)....* guix/utils.scm (<location>, source-properties->location) (location->source-properties, &error-location): Move to... * guix/diagnostics.scm: ... here. * gnu.scm: Adjust imports accordingly. * gnu/machine.scm: Likewise. * gnu/system.scm: Likewise. * gnu/tests.scm: Likewise. * guix/inferior.scm: Likewise. * tests/channels.scm: Likewise. * tests/packages.scm: Likewise. Ludovic Courtès 2019-03-24Add (gnu system keyboard)....* gnu/system/keyboard.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu.scm (%public-modules): Add it. Ludovic Courtès