summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython
Commit message (Collapse)AuthorAgeFilesLines
* FindPython: Add support for Python 3.11Tomáš Hrnčiar2021-12-071-1/+1
|
* FindPython: Ensure homebrew on Mac M1 is usedMarc Chevrier2021-09-031-0/+1
| | | | Fixes: #22581
* Merge topic 'FindPython-fix-variable-handling'Brad King2021-02-161-2/+2
|\ | | | | | | | | | | | | 754f4f6876 FindPython: fix erroneous variable handling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5816
| * FindPython: fix erroneous variable handlingMarc Chevrier2021-02-161-2/+2
| | | | | | | | Fixes: #21817
| * Merge topic 'FindPython-python2-soabi-suffix-fix' into release-3.19Brad King2020-12-081-2/+10
| |\ | | | | | | | | | | | | | | | | | | afb0ffcac7 FindPython2: avoid doubling the extension in CPython2 SOABI Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5574
| * | cmake_path: remove new command from 3.19Marc Chevrier2020-11-031-3/+2
| | | | | | | | | | | | | | | | | | | | | Defer adding this command until post-3.19 development so that it has more time to mature before being included in a release. Issue: #21385
* | | Merge topic 'FindPython-python2-soabi-suffix-fix'Brad King2020-12-081-2/+10
|\ \ \ | | |/ | |/| | | | | | | | | | | | | afb0ffcac7 FindPython2: avoid doubling the extension in CPython2 SOABI Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5574
| * | FindPython2: avoid doubling the extension in CPython2 SOABIBen Boeckel2020-12-041-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 951640f1f9 (FindPython: manage SOABI for all Python versions, 2020-08-11) extended support for Python2's SOABI variable in order to support the PyPy interpreter as well. This caused a regression in the way that the SOABI variable was built up for the CPython interpreter. This caused the variable to be set to `.so` which ended up causing a doubling of the resulting `SOABI` variable in the end. Co-Author: Marc Chevrier <marc.chevrier@gmail.com> Fixes: #21548
* | | FindPython: Adds control over artifact names to searchMarc Chevrier2020-11-031-2/+18
| |/ |/| | | | | Fixes: #21371
* | FindPython: Add support of version 3.10Marc Chevrier2020-10-161-1/+1
| |
* | FindPython: Ensure Apple Xcode python 3 is usableMarc Chevrier2020-10-121-0/+28
| | | | | | | | | | | | | | The python 3 distributed as part of Xcode requires the specification of a 'rpath' pointing at frameowrks root for a correct execution. Fixes: #21293
* | FindPython: Add version range supportMarc Chevrier2020-09-301-137/+272
|/ | | | Fixes: #21107
* FindPython: Fix erroneous regex in ABI checkMarc Chevrier2020-09-231-1/+1
| | | | | | | | A regex added by commit 6fdfe2428d (FindPython: enhance ABI checks against include directory, 2020-09-02, v3.18.3~17^2) was missing a backslash. Fixes: #21223
* FindPython: CMP0012 must be set to NEWMarc Chevrier2020-09-071-1/+11
| | | | Fixes: #21168
* 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