summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'Python3.14-support' into release-4.0Brad King2025-05-201-6/+13
|\ | | | | | | | | | | | | | | 41a4a32135 FindPython: Avoid implicit link library on Windows 811f00f9ad FindPython: rely on ABIFLAGS on Windows for ABI profile Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !10800
| * FindPython: Avoid implicit link library on WindowsMarc Chevrier2025-05-201-1/+10
| | | | | | | | | | | | | | Starting with version 3.14, on Windows, by specifying macro Py_NO_LINK_LIB, the python library is no longer implicitly specified at the link step. Fixes: #26756
| * FindPython: rely on ABIFLAGS on Windows for ABI profileMarc Chevrier2025-05-201-5/+3
| | | | | | | | | | Starting with Python 3.14, the config_var ABIFLAGS is now also available on Windows.
* | FindPython: fix the definition of SABI artifactsMarc Chevrier2025-04-211-5/+8
| | | | | | | | Fixes: #26881
* | LICENSE: Replace references to Copyright.txt with LICENSE.rstKitware Robot2025-03-031-1/+1
| | | | | | | | | | | | | | | | | | | | ``` git grep -lz 'Copyright.txt or https://cmake.org/licensing ' | while IFS= read -r -d $'\0' f ; do sed -i '/Copyright.txt or https:\/\/cmake.org\/licensing / { s/Copyright.txt/LICENSE.rst/ }' "$f" ; done ```
* | FindPython: Support for multiple searches in same directoryMarc Chevrier2025-02-131-2/+3
| | | | | | | | | | This is a complement to commit 9b0510fa57 (FindPython: add support for multiple searches in same directory, 2025-01-05).
* | Modules/Find*: Include FindPackageHandleStandardArgs normallyBrad King2025-01-301-1/+1
| | | | | | | | | | | | | | Since commit d74210a8bd (CMP0017: Remove support for OLD behavior, 2024-11-17) we can rely on CMP0017's NEW behavior unconditionally. Calling `include(FindPackageHandleStandardArgs)` in a builtin module will always get the builtin `FindPackageHandleStandardArgs`.
* | FindPython : fix a misspelled variable name in __python_import_library macro.Mathieu Flament2025-01-291-1/+1
| | | | | | | | As a result, the IMPORTED_LOCATION_RELEASE property of the SABIModule target was empty, instead of pointing to the Python runtime library for the Stable Application Binary Interface.
* | CMP0057: Remove support for OLD behaviorBrad King2025-01-221-2/+0
| |
* | CMP0012: Remove support for OLD behaviorBrad King2025-01-171-2/+0
| |
* | CMP0007: Remove support for OLD behaviorBrad King2025-01-171-2/+0
| |
* | FindPython: add support for multiple searches in same directoryMarc Chevrier2025-01-111-103/+109
| | | | | | | | | | | | | | | | In some situations, like cross-compilation, it can be required to search for the host python interpreter as well as the cross-compilation development artifacts. By managing different prefixes for the artifacts, multiple and independent searches can be achieved.
* | FindPython: enhance artifacts consistencyMarc Chevrier2025-01-011-1/+2
| | | | | | | | | | Avoid to rely on _Python_EXECUTABLE variable if the Interpreter component is not part of the current search.
* | FindPython: enhance Development artifacts lookup in virtual environmentMarc Chevrier2024-12-121-53/+132
|/ | | | | | | | To enable to locate development artifacts, in the context of virtual environment, without requiring Interpreter component, rely on the configuration file pyvenv.cfg. Fixes: #26505
* FindPython: Ensure SABIModule is found in all casesMarc Chevrier2024-12-021-3/+4
| | | | Fixes: #26493
* FindPython: Add support for Python 3.14Miro HronĨok2024-10-181-1/+1
|
* FindPython: ensure all ABI are searched by defaultMarc Chevrier2024-09-121-35/+19
| | | | Fixes: #26279
* Merge topic 'FindPython-free-threaded-python' into release-3.30Brad King2024-08-271-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
| * FindPython: ensure a usable environment is set for the free threaded PythonMarc Chevrier2024-08-271-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).
* | FindPython: fix regression of NumPy detection with Intel MKL libraryEven Rouault2024-08-261-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
* FindPython: Fix usage of cached variable _Python_EXECUTABLE_DEBUGMarc Chevrier2024-07-261-2/+20
| | | | Fixes: #26163
* FindPython: Add support for free threaded pythonMarc Chevrier2024-06-041-68/+115
| | | | Fixes: #26016
* FindPython: On Windows, Enhance python debug version supportMarc Chevrier2024-05-091-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
* Modules: Fix CMP0159 warnings in modules when tracingJuan Ramos2024-03-291-0/+2
| | | | Closes: #25829
* FindPython: fix NumPy detection when Intel MKL library is installedEven Rouault2024-03-211-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.
* Merge topic 'FindPython-3.13'Brad King2023-08-161-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
| * FindPython: add support for Python 3.13Vasily Ryabov2023-08-151-1/+1
| | | | | | | | | | Python 3.13.0a0 can be built from main branch of python/cpython though there were no official releases yet.
* | FindPython: enhance MinGW supportMarc Chevrier2023-08-051-11/+54
| | | | | | | | Ensure python-config script can be used.
* | Merge topic 'FindPython-Debian-workaround'Brad King2023-08-011-1/+1
|\ \ | |/ | | | | | | | | | | b02f3872d0 FindPython: Restore Python_SITE* values for versions below 3.10 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8672
| * FindPython: Restore Python_SITE* values for versions below 3.10Marc Chevrier2023-07-311-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
* | FindPython: Add tests for IronPython v3Marc Chevrier2023-06-291-2/+2
|/
* FindPython: update for distutils module deprecationMarc Chevrier2023-06-051-6/+6
| | | | Fixes: #24956
* Merge topic 'FindPython-fix-launcher-typo'Brad King2023-05-181-1/+1
|\ | | | | | | | | | | | | 31faf3945f FindPython: fix interpreter launcher variable spelling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8487
| * FindPython: fix interpreter launcher variable spellingBen Boeckel2023-05-171-1/+1
| | | | | | | | Reported-by: Johannes (#cmake Slack)
* | FindPython: Add Windows/ARM supportMarc Chevrier2023-03-261-26/+84
|/ | | | Fixes: #24587
* FindPython: ensure Stable ABI is correctly handledMarc Chevrier2023-03-201-1/+1
| | | | Fixes: #24610
* FindPython: fix erroneous ${CMAKE_SHARED_LIBRARY_SUFFIX} matchingMarc Chevrier2023-03-011-3/+3
| | | | Fixes: #24556
* Merge topic 'FindPython-CMP0007-NEW'Brad King2023-01-241-0/+2
|\ | | | | | | | | | | | | 486b3c0850 FindPython: Policy CMP0007 must be set to NEW Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8104
| * FindPython: Policy CMP0007 must be set to NEWMarc Chevrier2023-01-211-0/+2
| | | | | | | | Fixes: #24306
* | FindPython: add support for Stable ABIMarc Chevrier2022-11-291-91/+662
| | | | | | | | Fixes: #24141
* | FindPython: enhance SOABI computationMarc Chevrier2022-11-151-8/+31
|/ | | | Fixes: #24121, #23651
* FindPython: remove unnecessary components interdependenceMarc Chevrier2022-07-191-1/+9
| | | | Fixes: #23716
* Merge topic 'FindPython-multiple-queries'Brad King2022-06-281-2/+4
|\ | | | | | | | | | | | | ece3bedbf2 FindPython: fix error on multiple queries with different COMPONENTS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7410
| * FindPython: fix error on multiple queries with different COMPONENTSMarc Chevrier2022-06-271-2/+4
| | | | | | | | | | Ensure that multiple queries with different COMPONENTS specified in different sub-directories are fully supported.
* | FindPython: enhance search criteriasMarc Chevrier2022-06-221-103/+124
| | | | | | | | | | | | | | | | Use VALIDATOR option of find_* commands to add more criterias to the search: * version * architecture Fixes: #22319
* | FindPython: enhance windows registry handlingMarc Chevrier2022-06-211-12/+25
|/
* FindPython*: enhance interpreter lookupMarc Chevrier2022-06-051-2/+11
| | | | Fixes: #23588
* FindPython: add support for Python 3.12Michael Hirsch2022-05-121-1/+1
|
* FindPython: fix typo errorMarc Chevrier2022-05-031-1/+1
| | | | Fixes: #23476
* FindPython: Add support for pypy v7.3.9 and uppersMarc Chevrier2022-04-201-1/+12
| | | | | | Library name versioning has changed. Fixes: #23439