View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014156CMakeModulespublic2013-05-19 06:102016-06-10 14:31
ReporterModestas Vainius 
Assigned ToBen Boeckel 
Platformamd64OSDebian GNU/LinuxOS Versionsid
Product VersionCMake 2.8.11 
Target VersionFixed in Version 
Summary0014156: FindPythonLibs: fully support Python on Debian multi-arch systems

I don't know the details but the following patch is needed to make FindPythonLibs properly work on Debian multi-arch systems (that's for future Debian 8.0 and some recent Ubuntu);a=blob;f=debian/patches/multiarch-python-include-dirs.diff;hb=master [^]
TagsNo tags attached.
Attached Files


Jean-Christophe Fillion-Robin (reporter)
2013-05-19 18:05

In the same time, the patched CMake is causing trouble to build some project. See [^]

@Modestas: Waiting to fix the CMake version of FindPythonLibs.cmake, do you know who should be contacted / what it the process to tweak the module currently provided within Debian ?

Would be helpful if "PYTHON_INCLUDE_DIRS" is appended to the list of path to search when setting "PYTHON_INCLUDE_DIRS2".

Modestas Vainius (reporter)
2013-05-20 01:48

That would be me. Thanks for letting us know about the problem.

The patch is supposed to be backwards compatible so we will try to fix your problem with the patch. Watch this bug for updates.
domibel (reporter)
2013-08-08 23:46

I have the same problem with Debian Testing right now.

The patch mentioned above needs another change. JC's idea worked for me:

     NAMES pyconfig.h
domibel (reporter)
2013-08-12 10:36

The patch above doesn't work in some cases.

Here is another patch which has to be applied on top of the original patch in the Debian repository.

It looks for pyconfig.h in the original folder PYTHON_INCLUDE_DIR, and uses the alternative location only if the file couldn't be located.

+ NAMES pyconfig.h
+ )
     NAMES pyconfig.h
@@ -162,6 +183,10 @@
+ endif()

Slicer4 compiles on Debian testing and Ubuntu 13.04 with that change. [^]
Dmitrijs Ledkovs (reporter)
2013-12-13 12:18

It has proven too much work to have pyconfig.h in an multiarch location.

Therefore, pyconfig.h was re-introduced in an non-multiarch location. Instead it is a compatibility header that using compiler macros includes the correct pyconfig.h from a multiarch location.

This patch should be dropped, as it's no longer needed.
Kitware Robot (administrator)
2016-06-10 14:28

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2013-05-19 06:10 Modestas Vainius New Issue
2013-05-19 18:05 Jean-Christophe Fillion-Robin Note Added: 0033096
2013-05-20 01:48 Modestas Vainius Note Added: 0033098
2013-08-08 23:46 domibel Note Added: 0033690
2013-08-12 10:36 domibel Note Added: 0033699
2013-08-13 09:07 Brad King Assigned To => Ben Boeckel
2013-08-13 09:07 Brad King Status new => assigned
2013-12-13 12:18 Dmitrijs Ledkovs Note Added: 0034771
2016-06-10 14:28 Kitware Robot Note Added: 0042284
2016-06-10 14:28 Kitware Robot Status assigned => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed

Copyright © 2000 - 2018 MantisBT Team