Commit Graph

32 Commits

Author SHA1 Message Date
Marc Chevrier c990a5209a FindPython: ensure virtual environments are correctly handled
Fixes: #19525
2019-08-05 18:20:29 +02:00
Brad King 4740f01a29 Merge topic 'FindPython-interpreter-crosscompiling'
26c7cee0f2 FindPython: ensure interpreter is founded when cross-compiling

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3564
2019-07-18 07:15:48 -04:00
Marc Chevrier 26c7cee0f2 FindPython: ensure interpreter is founded when cross-compiling
Fixes: #19473
2019-07-18 07:13:20 -04:00
Marc Chevrier 42f591060b FindPython: add Python_FIND_ABI hint.
This variable will enable to specify will ABIs will be searched.
2019-06-24 12:00:21 +02:00
Marc Chevrier b5bbd786c5 FindPython: ensure Python_ROOT_DIR is always searched first 2019-05-31 19:05:04 +02:00
Marc Chevrier e085fe14ce FindPython*: remove erroneous code 2019-05-30 13:40:46 +02:00
Marc Chevrier 5b41a556a4 FindPython: Add variable 'Python_FIND_FRAMEWORK' to control frameworks lookup. 2019-05-24 18:44:43 +02:00
Marc Chevrier febbf1c7a7 FindPython: Add policy to manage lookup stratgey default. 2019-05-21 16:13:27 +02:00
Marc Chevrier db1949d7c3 FindPython: Implement lookup strategies.
Configration variable Python_FIND_STRATEGY controls the lookup startegy.
Possible values are LOCATION and VERSION.

Fixes: #19159
2019-05-21 16:13:27 +02:00
Marc Chevrier a5b712bebc FindPython*: Manage weak link for Python modules
Add new target Python::Module which take care of platform requirements
for Python module development.

Fixes: #18100
2019-05-07 16:37:24 +02:00
Brad King 74a679f21d Merge topic 'FindPython-fix-Python_RUNTIME_LIBRARY_DIRS-variable'
e0388b3ba6 FindPython: ensure variable Python_RUNTIME_LIBRARY_DIRS is set correctly

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3287
2019-05-06 09:33:45 -04:00
Marc Chevrier e0388b3ba6 FindPython: ensure variable Python_RUNTIME_LIBRARY_DIRS is set correctly 2019-05-05 12:55:39 +02:00
Brad King 390883b244 Merge topic 'FindPython-NumPy-fix-dependencies-management'
827f636f68 FindPython: NumPy: fix erroneous dependencies management

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3274
2019-05-01 12:02:07 -04:00
Marc Chevrier 827f636f68 FindPython: NumPy: fix erroneous dependencies management 2019-04-30 16:02:18 +02:00
Marc Chevrier f1825b7b8f FindPython*: Add capability to control virtual env handling.
Fixes: #19097
2019-04-03 09:16:17 +02:00
Marc Chevrier bfe481d62e FindPython*: ensure correct architecture is selected.
Ensure interpreter and libraries architecture matches CMake build
configuration.
Update documentation about interpreter constraints.

Fixes: #19024
2019-03-14 18:53:57 +01:00
Marc Chevrier 1606343a83 FindPython: Fix NumPy component include directory
Update the component added by commit 05862e0e33 (FindPython: Introduce
NumPy component, 2018-12-12, v3.14.0-rc1~95^2).  The `numpy/`
sub-directory should not be part of the include directory.  It should be
part of the `#include` line.
2019-03-04 08:28:21 -05:00
Hiroshi Miura 05862e0e33 FindPython: Introduce NumPy component
Fixes: #18678
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2019-01-25 01:26:48 +09:00
Kyle Edwards 8c63fbc765 FindPython: Support script mode
Fixes: #18827
2019-01-23 13:51:09 -05:00
Marc Chevrier d7902677a9 FindPython: Ensure config tool matches library architecture 2018-11-19 15:36:26 -05:00
Marc Chevrier 1f39a679e1 FindPython*: Add missing registry paths
Fixes: #18443
2018-10-11 14:13:31 -04:00
Marc Chevrier 96a526b135 FindPython*: fix erroneous handling of virtual environments
fixes: #18408
2018-10-02 11:09:45 +02:00
Marc Chevrier e985623fd5 FindPython*: Windows: add facility to select lookup order for registry.
Fixes: #18302
2018-09-12 10:04:05 +02:00
Marc Chevrier cde14ede5f FindPython*: MacOS: Fix erroneous handling of Frameworks.
Fixes: #18204
2018-09-12 10:04:04 +02:00
Marc Chevrier 189eae0682 FindPython: clean-up lookup names strategy 2018-09-12 10:04:04 +02:00
Marc Chevrier 3afc065f5d FindPython*: fix erroneous behavior on multiple 'find_package' calls
Fixes: #18192
2018-07-23 11:08:16 -04:00
Marcel Plch b98834fae7 FindPython: Add support for version 3.8
Python 3.7 is about to be released, making the development version 3.8.
2018-06-08 09:42:18 -04:00
luz.paz 104125d800 Fix misc. typos
Found via `codespell` and `grep`
2018-06-04 10:32:49 -04:00
Marc Chevrier 1502b65ef4 FindPython: ensure correct architecture (i.e. 32/64bit) is used 2018-04-20 14:30:32 +02:00
Yee Fan 3b1d4f97ae FindPython: Add cross-compilation support for Debian-based systems.
Debian-based Linux distributions locate their architecture-specific
pythonX.Y-config tool at /usr/bin/<arch>-python<X.Y>-config.

We first attempt to find and use the architecture-specific
pythonX.Y-config tool. If the pythonX.Y-config tools are absent, then we
proceed to find the architecture-specific Python libraries.

Fixes: #17912
2018-04-19 02:53:46 +08:00
Marc Chevrier 297d7a3851 FindPython: enhance multiple major versions lookup 2018-04-03 09:41:19 +02:00
Marc Chevrier 780bfef533 FindPython*: New implementation for Python stuff
Fixes: #16142
2018-03-20 09:29:44 +01:00