This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch pu/reproducible_builds
in repository dh-python.

commit c8b1db7011908f7a702fcf26837be1f3118a5cf6
Author: Piotr Ożarowski <pi...@debian.org>
Date:   Thu Oct 17 22:22:29 2013 +0200

    cmake build pluging: set PYTHON_LIBRARY and PYTHON_INCLUDE_DIR
---
 debian/changelog               | 2 ++
 dhpython/build/plugin_cmake.py | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 7bf5e7e..311c263 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,8 @@ dh-python (1.20131003-2) UNRELEASED; urgency=low
   [ Piotr Ożarowski ]
   * dh_python2: searching for packages with egg-info fixed
   * dh_py*: "so" files no longer detected as extensions (closes: 726616)
+  * pybuild: set PYTHON_LIBRARY and PYTHON_INCLUDE_DIR in cmake build
+    plugin's configure step
 
   [ B. Clausius ]
   * pybuild: no longer fails if source directory path contains braces
diff --git a/dhpython/build/plugin_cmake.py b/dhpython/build/plugin_cmake.py
index bdf53f2..cbbdb4d 100644
--- a/dhpython/build/plugin_cmake.py
+++ b/dhpython/build/plugin_cmake.py
@@ -21,7 +21,6 @@
 from dhpython.build.base import Base, shell_command
 
 
-# FIXME: doesn't work
 class BuildSystem(Base):
     DESCRIPTION = 'CMake build system (using dh_auto_* commands)'
     REQUIRED_COMMANDS = ['cmake']
@@ -38,6 +37,8 @@ class BuildSystem(Base):
         return ('dh_auto_configure --buildsystem=cmake'
                 ' --builddirectory="{build_dir}" --'
                 ' -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/{interpreter}'
+                ' -DPYTHON_LIBRARY:FILEPATH={interpreter.library_file}'
+                ' -DPYTHON_INCLUDE_DIR:PATH={interpreter.include_dir}'
                 ' {args}')
 
     @shell_command

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/reproducible/dh-python.git

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to