summaryrefslogtreecommitdiffstats
path: root/Tests/FindPython
Commit message (Collapse)AuthorAgeFilesLines
* FindPython: add support for Stable ABIMarc Chevrier2022-11-296-1/+134
| | | | Fixes: #24141
* FindPython: fix error on multiple queries with different COMPONENTSMarc Chevrier2022-06-273-0/+22
| | | | | Ensure that multiple queries with different COMPONENTS specified in different sub-directories are fully supported.
* Merge topic 'FindPython-version-range-fix-tests'Brad King2020-11-121-16/+25
|\ | | | | | | | | | | | | a00603af0b FindPython: Fix version range tests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5497
| * FindPython: Fix version range testsMarc Chevrier2020-11-111-16/+25
| | | | | | | | Tests must be successful when multiple versions are installed.
* | FindPython: Adds control over artifact names to searchMarc Chevrier2020-11-032-0/+78
|/ | | | Fixes: #21371
* FindPython: Enable C language in tests that find the Development componentMarc Chevrier2020-10-0710-10/+10
| | | | | | | | | | | Since commit 5537ccd814 (FindPython: Tests optimizations, 2020-10-01) some FindPython tests fail because the Development component cannot be found without knowing `CMAKE_LIBRARY_ARCHITECTURE`. Enable at least one language in each of these test cases to get that value. This is consistent with use in practice because the Development component does not make much sense without a language to compile sources anyway. Fixes: #21277
* FindPython: Tests optimizationsMarc Chevrier2020-10-0121-82/+82
| | | | | * Use 'project(... LANGUAGES NONE)' when possible * enhance error messages wording
* FindPython: Add version range supportMarc Chevrier2020-09-302-0/+159
| | | | Fixes: #21107
* FindPython: manage SOABI for all Python versionsMarc Chevrier2020-08-111-0/+16
| | | | Fixes: #21070
* FindPython: ensure user's policies are respectedMarc Chevrier2020-08-071-1/+1
| | | | | | | | | | | Do not set the policy version before recording our internal macros such as `__Python_add_library`. Otherwise callers get our policy version instead of theirs. Instead just set the specific policies we need. Also fix one case in our test suite where we were accidentally relying on the policy version to be set by `FindPython`. Fixes: #21042
* Merge branch 'backport-3.17-FindPython-check-specified-version' into ↵Marc Chevrier2020-05-072-0/+149
|\ | | | | | | FindPython-check-specified-version
| * FindPython: ensure any specified version is correctly handledMarc Chevrier2020-05-072-0/+149
| | | | | | | | Fixes: #20674
* | FindPython: Add support for 'PyPy'Marc Chevrier2020-05-014-0/+216
| |
* | FindPython: Add capability to specify Python implementationsMarc Chevrier2020-04-284-2/+80
| | | | | | | | | | | | | | | | Through hint Python_FIND_IMPLEMENTATIONS it is possble to specify, as an ordered list, which implementations must be searched for. Currently possible values are: * CPython * IronPython
* | Merge topic 'FindPython-fix-python-compiler-validation'Brad King2020-04-243-3/+111
|\ \ | |/ | | | | | | | | | | f39da773ee FindPython: fix python compiler validation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4655
| * FindPython: fix python compiler validationMarc Chevrier2020-04-233-3/+111
| | | | | | | | | | | | | | Ensure also the cache of properties is erased in case of multiple searches. Fixes: #20626, #20627
* | FindPython: add sub-components to Development componentMarc Chevrier2020-04-168-3/+148
| | | | | | | | Fixes: #20425
* | Merge topic 'FindPython-version-validation-fix'Brad King2020-03-182-15/+67
|\ \ | |/ | | | | | | | | | | cc7f116cb4 FindPython: fix regression on version validation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4492
| * FindPython: fix regression on version validationMarc Chevrier2020-03-172-15/+67
| | | | | | | | | | | | | | | | | | | | In commit 3dab4682f6 (FindPython: reduces consumption of resources, 2020-02-10, v3.17.0-rc1~11^2) we accidentally broke the python executable version validation when the "LOCATION" strategy is used with the plain `FindPython` module. Fix the logic and add test cases covering those combinations. Fixes: #20465
* | FindPython: Add possibility to control scope of artifacts.Marc Chevrier2020-03-053-3/+56
|/ | | | Fixes: #20362
* FindPython: python_add_library can now manage SOABI suffix.Marc Chevrier2020-03-031-0/+10
| | | | Fixes: #20408
* FindPython: reduces consumption of resourcesMarc Chevrier2020-02-101-0/+1
| | | | | | | Stores more information in the cache to reduce the number of sub-processes required on subsequent find_package calls. Fixes: #20337
* FindPython: Add variable Python_SOABIMarc Chevrier2020-01-092-0/+40
| | | | | | This variable holds the standard extension suffix for modules. Fixes: #20150
* FindPython: Extend virtual environment handling by considering condaSebastian Müller2019-12-216-0/+92
| | | | | | - Add functionality to recognize and use CONDA_PREFIX environment variable - Add tests for conda virtual environments - Fixes: #20111
* FindPython: customize failure messageMarc Chevrier2019-11-013-0/+98
|
* Revise include order using clang-format-6.0Kitware Robot2019-10-011-2/+2
| | | | | Run the `clang-format.bash` script to update our C and C++ code to a new include order `.clang-format`. Use `clang-format` version 6.0.
* FindPython: Add capability to specify directly artifactsMarc Chevrier2019-09-023-0/+164
| | | | Fixes: #19492
* FindPython: add Python_FIND_ABI hint.Marc Chevrier2019-06-243-1/+63
| | | | This variable will enable to specify will ABIs will be searched.
* FindPython: Implement lookup strategies.Marc Chevrier2019-05-211-6/+26
| | | | | | | Configration variable Python_FIND_STRATEGY controls the lookup startegy. Possible values are LOCATION and VERSION. Fixes: #19159
* FindPython*: Manage weak link for Python modulesMarc Chevrier2019-05-079-0/+134
| | | | | | | Add new target Python::Module which take care of platform requirements for Python module development. Fixes: #18100
* FindPython*: Add capability to control virtual env handling.Marc Chevrier2019-04-035-0/+82
| | | | Fixes: #19097
* FindPython: Fix NumPy component include directoryMarc Chevrier2019-03-041-1/+1
| | | | | | | Update the component added by commit 513e77550d (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.
* FindPython: Introduce NumPy componentHiroshi Miura2019-01-244-63/+182
| | | | | Fixes: #18678 Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* FindPython: Support script modeKyle Edwards2019-01-234-0/+13
| | | | Fixes: #18827
* FindPython: Test existence of imported targetsKyle Edwards2019-01-233-0/+24
|
* FindPython*: New implementation for Python stuffMarc Chevrier2018-03-208-0/+232
Fixes: #16142