summaryrefslogtreecommitdiff
path: root/Modules/FindPython/Support.cmake
AgeCommit message (Collapse)AuthorLines
2024-12-02FindPython: Ensure SABIModule is found in all casesMarc Chevrier-3/+4
Fixes: #26493
2024-10-17FindPython: Add support for Python 3.14Miro Hrončok-1/+1
2024-09-12FindPython: ensure all ABI are searched by defaultMarc Chevrier-35/+19
Fixes: #26279
2024-08-27Merge topic 'FindPython-free-threaded-python' into release-3.30Brad King-0/+27
10abd2ac5a FindPython: ensure a usable environment is set for the free threaded Python Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9775
2024-08-27FindPython: ensure a usable environment is set for the free threaded PythonMarc Chevrier-0/+27
Define the `Python_DEFINITIONS` variable for the support of free threaded Python developments on Windows. This is a complement to commit 9a0dee7257 (FindPython: Add support for free threaded python, 2024-05-30).
2024-08-26FindPython: fix regression of NumPy detection with Intel MKL libraryEven Rouault-9/+8
Fix commit df551ee538 (FindPython: fix NumPy detection when Intel MKL library is installed, 2024-03-20, v3.30.0-rc1~361^2) by setting `MKL_ENABLE_INSTRUCTIONS` to `SSE4_2`, but only if `MKL_ENABLE_INSTRUCTIONS` is not set in the calling environment. Fixes: #26240
2024-07-26FindPython: Fix usage of cached variable _Python_EXECUTABLE_DEBUGMarc Chevrier-2/+20
Fixes: #26163
2024-06-04FindPython: Add support for free threaded pythonMarc Chevrier-68/+115
Fixes: #26016
2024-05-09FindPython: On Windows, Enhance python debug version supportMarc Chevrier-14/+85
Add the following variables: * Python_EXECUTABLE_DEBUG * Python_INTERPRETER * Python_DEBUG_POSTFIX and target Python::InterpreterDebug. python_add_library() command Manage DEBUG_POSTFIX target property based on the value of Python_DEBUG_POSTFIX variable. Fixes: #25874
2024-03-29Modules: Fix CMP0159 warnings in modules when tracingJuan Ramos-0/+2
Closes: #25829
2024-03-21FindPython: fix NumPy detection when Intel MKL library is installedEven Rouault-0/+16
In an environment where both NumPy and a recent Intel MKL library are installed, the detection of numpy include directory fails because a 'import numpy' outputs a MKL related warning message on stdout... (namely "Intel MKL WARNING: Support of Intel(R) Advanced Vector Extensions (Intel(R) AVX) enabled only processors has been deprecated. Intel oneAPI Math Kernel Library will use Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) instructions instead.") I've successfully tested the workaround mentioned at https://github.com/numpy/numpy/issues/23775#issuecomment-1923327310 which consists in setting the MKL_ENABLE_INSTRUCTIONS=SSE4_2 environment before importing numpy, hence this proposed workaround.
2023-08-16Merge topic 'FindPython-3.13'Brad King-1/+1
dfab044c44 FindPython: add support for Python 3.13 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8712
2023-08-15FindPython: add support for Python 3.13Vasily Ryabov-1/+1
Python 3.13.0a0 can be built from main branch of python/cpython though there were no official releases yet.
2023-08-05FindPython: enhance MinGW supportMarc Chevrier-11/+54
Ensure python-config script can be used.
2023-08-01Merge topic 'FindPython-Debian-workaround'Brad King-1/+1
b02f3872d0 FindPython: Restore Python_SITE* values for versions below 3.10 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8672
2023-07-31FindPython: Restore Python_SITE* values for versions below 3.10Marc Chevrier-1/+1
Debian based distributions have a buggy sysconfig package. So, rely on distutils.sysconfig if python version is less than 3.10. Fixes: #25135
2023-06-29FindPython: Add tests for IronPython v3Marc Chevrier-2/+2
2023-06-05FindPython: update for distutils module deprecationMarc Chevrier-6/+6
Fixes: #24956
2023-05-18Merge topic 'FindPython-fix-launcher-typo'Brad King-1/+1
31faf3945f FindPython: fix interpreter launcher variable spelling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8487
2023-05-17FindPython: fix interpreter launcher variable spellingBen Boeckel-1/+1
Reported-by: Johannes (#cmake Slack)
2023-03-26FindPython: Add Windows/ARM supportMarc Chevrier-25/+83
Fixes: #24587
2023-03-20FindPython: ensure Stable ABI is correctly handledMarc Chevrier-1/+1
Fixes: #24610
2023-03-01FindPython: fix erroneous ${CMAKE_SHARED_LIBRARY_SUFFIX} matchingMarc Chevrier-3/+3
Fixes: #24556
2023-01-24Merge topic 'FindPython-CMP0007-NEW'Brad King-0/+2
486b3c0850 FindPython: Policy CMP0007 must be set to NEW Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8104
2023-01-21FindPython: Policy CMP0007 must be set to NEWMarc Chevrier-0/+2
Fixes: #24306
2022-11-29FindPython: add support for Stable ABIMarc Chevrier-91/+662
Fixes: #24141
2022-11-15FindPython: enhance SOABI computationMarc Chevrier-8/+31
Fixes: #24121, #23651
2022-07-19FindPython: remove unnecessary components interdependenceMarc Chevrier-1/+9
Fixes: #23716
2022-06-28Merge topic 'FindPython-multiple-queries'Brad King-2/+4
ece3bedbf2 FindPython: fix error on multiple queries with different COMPONENTS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7410
2022-06-27FindPython: fix error on multiple queries with different COMPONENTSMarc Chevrier-2/+4
Ensure that multiple queries with different COMPONENTS specified in different sub-directories are fully supported.
2022-06-22FindPython: enhance search criteriasMarc Chevrier-103/+124
Use VALIDATOR option of find_* commands to add more criterias to the search: * version * architecture Fixes: #22319
2022-06-21FindPython: enhance windows registry handlingMarc Chevrier-12/+25
2022-06-05FindPython*: enhance interpreter lookupMarc Chevrier-2/+11
Fixes: #23588
2022-05-12FindPython: add support for Python 3.12Michael Hirsch-1/+1
2022-05-03FindPython: fix typo errorMarc Chevrier-1/+1
Fixes: #23476
2022-04-20FindPython: Add support for pypy v7.3.9 and uppersMarc Chevrier-1/+12
Library name versioning has changed. Fixes: #23439
2022-03-17FindPython: fix various problems using pypy interpretersMarc Chevrier-10/+25
* add more possible directories for include file search * enhance version detection from library and include files * search for file pypy_decl.h when PyPy.h is not defined
2021-12-07FindPython: Add support for Python 3.11Tomáš Hrnčiar-1/+1
2021-09-03FindPython: Ensure homebrew on Mac M1 is usedMarc Chevrier-0/+1
Fixes: #22581
2021-02-16Merge topic 'FindPython-fix-variable-handling'Brad King-2/+2
754f4f6876 FindPython: fix erroneous variable handling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5816
2021-02-16FindPython: fix erroneous variable handlingMarc Chevrier-2/+2
Fixes: #21817
2020-12-08Merge topic 'FindPython-python2-soabi-suffix-fix'Brad King-2/+10
afb0ffcac7 FindPython2: avoid doubling the extension in CPython2 SOABI Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5574
2020-12-08Merge topic 'FindPython-python2-soabi-suffix-fix' into release-3.19Brad King-2/+10
afb0ffcac7 FindPython2: avoid doubling the extension in CPython2 SOABI Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5574
2020-12-04FindPython2: avoid doubling the extension in CPython2 SOABIBen Boeckel-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
2020-11-03cmake_path: remove new command from 3.19Marc Chevrier-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
2020-11-03FindPython: Adds control over artifact names to searchMarc Chevrier-2/+18
Fixes: #21371
2020-10-16FindPython: Add support of version 3.10Marc Chevrier-1/+1
2020-10-12FindPython: Ensure Apple Xcode python 3 is usableMarc Chevrier-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
2020-09-30FindPython: Add version range supportMarc Chevrier-137/+272
Fixes: #21107
2020-09-23FindPython: Fix erroneous regex in ABI checkMarc Chevrier-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