summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython
Commit message (Collapse)AuthorAgeFilesLines
...
* FindPython: enhance ABI checks against include directoryMarc Chevrier2020-09-021-8/+18
| | | | Fixes: #21149
* FindPython: enhance robustness of version extraction from library nameMarc Chevrier2020-08-181-3/+4
| | | | Fixes: #21105
* FindPython: manage SOABI for all Python versionsMarc Chevrier2020-08-111-12/+4
| | | | Fixes: #21070
* FindPython: ensure user's policies are respectedMarc Chevrier2020-08-071-8/+5
| | | | | | | | | | | 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
* FindPython: use CMAKE specific variables to look-up debug libraryMarc Chevrier2020-05-181-0/+6
| | | | Fixes: #20714
* FindPython: Add IronPython support on all platformsMarc Chevrier2020-05-111-82/+337
|
* FindPython: ensure any specified version is correctly handledMarc Chevrier2020-05-071-47/+66
| | | | Fixes: #20674
* FindPython: Add support for 'PyPy'Marc Chevrier2020-05-011-9/+91
|
* FindPython: fix error on FPHSA callMarc Chevrier2020-04-291-20/+20
|
* FindPython: Add capability to specify Python implementationsMarc Chevrier2020-04-281-489/+547
| | | | | | | | 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-reason-failure'Brad King2020-04-271-21/+23
|\ | | | | | | | | | | | | a7eca04163 FindPython: fix reason failure propagation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4660
| * FindPython: fix reason failure propagationMarc Chevrier2020-04-241-21/+23
| |
* | Merge topic 'FindPython-fix-python-compiler-validation'Brad King2020-04-241-15/+16
|\ \ | |/ | | | | | | | | | | f39da773ee FindPython: fix python compiler validation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4655
| * FindPython: fix python compiler validationMarc Chevrier2020-04-231-15/+16
| | | | | | | | | | | | | | Ensure also the cache of properties is erased in case of multiple searches. Fixes: #20626, #20627
* | FindPython: remove unnecessary if checkBen Boeckel2020-04-201-3/+1
| | | | | | | | `list(REMOVE_DUPLICATES)` is safe on empty lists since 3.14.
* | FindPython: fix some indentationBen Boeckel2020-04-171-2/+2
| |
* | FindPython: add sub-components to Development componentMarc Chevrier2020-04-161-80/+220
| | | | | | | | Fixes: #20425
* | Merge topic 'FindPython-if-auto-deref'Brad King2020-04-151-9/+9
|\ \ | |/ | | | | | | | | | | | | 894fdea2a9 FindPython: remove extra dereference 0b9c9e2c8c FindPython: avoid autoderef in version comparisons Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4610
| * FindPython: remove extra dereferenceBen Boeckel2020-04-141-1/+1
| | | | | | | | | | If the version is not found (e.g., missing headers), this causes a CMake error about `if(blah VERSION_EQUAL)` being an invalid statement.
| * FindPython: avoid autoderef in version comparisonsBen Boeckel2020-04-141-8/+8
| |
| * Merge topic 'FindPython-fix-VIRTUALENV-eq-FIRST' into release-3.17Brad King2020-04-021-1/+1
| |\ | | | | | | | | | | | | | | | | | | 81beb28752 FindPython: fix handling when FIND_VIRTUALENV == FIRST Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4557
* | \ Merge topic 'FindPython-fix-VIRTUALENV-eq-FIRST'Brad King2020-04-021-1/+1
|\ \ \ | | |/ | |/| | | | | | | | | | | | | 81beb28752 FindPython: fix handling when FIND_VIRTUALENV == FIRST Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4557
| * | FindPython: fix handling when FIND_VIRTUALENV == FIRSTMarc Chevrier2020-04-011-1/+1
| | | | | | | | | | | | Fixes: #20525
| * | FindPython: Do not cache computed result variables in CMake 3.16Marc Chevrier2020-02-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 06d9e67fbd (FindPython: Add capability to specify directly artifacts, 2019-08-15, v3.16.0-rc1~157^2) we accidentally add the result variables `Python*_LIBRARY_RELEASE` and `Python*_LIBRARY_DEBUG` to the cache. They are always computed from other results and so should not be presented to users in cmake-gui and ccmake to edit. Issue: #20362
| * | FindPython: Mark non-public cache entries INTERNAL in CMake 3.16Marc Chevrier2020-02-261-48/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 06d9e67fbd (FindPython: Add capability to specify directly artifacts, 2019-08-15, v3.16.0-rc1~157^2) we accidentally expose cache entries named `_Python...` to users in cmake-gui and ccmake. Mark those entries as `INTERNAL` to hide them. Issue: #20362
* | | FindPython: use 'sysconfig' as alternate to 'distutils.sysconfig'Marc Chevrier2020-03-281-12/+24
| | | | | | | | | | | | | | | | | | | | | To support any python installation, if package 'distutils.sysconfig' is not available, try to use package 'sysconfig'. Fixes: #20502
* | | Merge topic 'FindPython-variable-spelling-error'Brad King2020-03-271-1/+1
|\ \ \ | | |/ | |/| | | | | | | | | | | | | 63580668a8 FindPython: fix variable spelling error Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4529
| * | FindPython: fix variable spelling errorMarc Chevrier2020-03-261-1/+1
| | |
* | | Merge topic 'FindPython-polish'Brad King2020-03-251-3/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | bf1ecfef7f FindPython: misc. fixes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4519
| * | FindPython: misc. fixesMarc Chevrier2020-03-241-3/+3
| | | | | | | | | | | | | | | Help: Fix errors regardings HINTS. Code: Optimize Python signature cache variable to avoid unecessary searchs.
* | | Merge topic 'FindPython-version-validation-fix'Brad King2020-03-181-4/+4
|\ \ \ | |/ / | | | | | | | | | | | | | | | 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-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge topic 'FindPython-ENV-CMAKE_FRAMEWORK_PATH'Brad King2020-03-121-1/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | 1044776472 FindPython: Convert env CMAKE_FRAMEWORK_PATH to CMake path Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Marc Chevrier <marc.chevrier@gmail.com> Merge-request: !4462
| * | FindPython: Convert env CMAKE_FRAMEWORK_PATH to CMake pathBo Anderson2020-03-111-1/+2
| | |
* | | FindPython: Add possibility to control scope of artifacts.Marc Chevrier2020-03-051-13/+28
|/ / | | | | | | Fixes: #20362
* | FindPython: python_add_library can now manage SOABI suffix.Marc Chevrier2020-03-031-6/+23
| | | | | | | | Fixes: #20408
* | FindPython: Do not cache computed result variablesMarc Chevrier2020-02-261-2/+2
| | | | | | | | | | | | | | | | | | | | Since commit 06d9e67fbd (FindPython: Add capability to specify directly artifacts, 2019-08-15, v3.16.0-rc1~157^2) we accidentally add the result variables `Python*_LIBRARY_RELEASE` and `Python*_LIBRARY_DEBUG` to the cache. They are always computed from other results and so should not be presented to users in cmake-gui and ccmake to edit. Issue: #20362
* | FindPython: Mark non-public cache entries INTERNALMarc Chevrier2020-02-261-52/+99
| | | | | | | | | | | | | | | | | | Since commit 06d9e67fbd (FindPython: Add capability to specify directly artifacts, 2019-08-15, v3.16.0-rc1~157^2) we accidentally expose cache entries named `_Python...` to users in cmake-gui and ccmake. Mark those entries as `INTERNAL` to hide them. Issue: #20362
* | FindPython: reduces consumption of resourcesMarc Chevrier2020-02-101-88/+137
| | | | | | | | | | | | | | Stores more information in the cache to reduce the number of sub-processes required on subsequent find_package calls. Fixes: #20337
* | Merge topic 'python39'Brad King2020-01-151-1/+1
|\ \ | |/ | | | | | | | | | | | | | | f6474214b3 FindPython: Add support for version 3.9 Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Marc Chevrier <marc.chevrier@gmail.com> Acked-by: Björn Esser <besser82@fedoraproject.org> Merge-request: !4225
| * FindPython: Add support for version 3.9Miro Hrončok2020-01-141-1/+1
| | | | | | | | | | | | | | Development versions of Python 3.9.0 are already out there. See PEP 596 -- Python 3.9 Release Schedule: https://www.python.org/dev/peps/pep-0596/
* | Merge topic 'macOS-Xcode-11-frameworks'Brad King2020-01-131-0/+3
|\ \ | |/ | | | | | | | | | | | | fcde42751a FindPython: ensure new Xcode framework for Python3 is detected dd7b741b81 macOS: Add support for new Xcode 11 frameworks directory Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4198
| * FindPython: ensure new Xcode framework for Python3 is detectedMarc Chevrier2020-01-101-0/+3
| |
* | FindPython: Add variable Python_SOABIMarc Chevrier2020-01-091-6/+44
| | | | | | | | | | | | This variable holds the standard extension suffix for modules. Fixes: #20150
* | Merge topic 'findpython_conda_support'Marc Chevrier2019-12-231-7/+7
|\ \ | | | | | | | | | | | | | | | | | | 776d27d4a4 FindPython: Extend virtual environment handling by considering conda Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4155
| * | FindPython: Extend virtual environment handling by considering condaSebastian Müller2019-12-211-7/+7
| | | | | | | | | | | | | | | | | | - Add functionality to recognize and use CONDA_PREFIX environment variable - Add tests for conda virtual environments - Fixes: #20111
* | | Merge topic 'FindPython-Fix-target-properties'Kyle Edwards2019-12-201-1/+1
|\ \ \ | |/ / |/| / | |/ | | | | | | | | fe280e0cda FindPython*: Fix erroneous target properties setting Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kyle Edwards <kyle.edwards@kitware.com> Merge-request: !4154
| * FindPython*: Fix erroneous target properties settingMarc Chevrier2019-12-191-1/+1
| | | | | | | | | | Property IMPORTED_CONFIGURATIONS for targets Python*::Python and Python*::Module is not correctly set.
* | FindPython: customize failure messageMarc Chevrier2019-11-011-1/+49
|/
* FindPython: Add capability to specify directly artifactsMarc Chevrier2019-09-021-205/+292
| | | | Fixes: #19492