Brad King
ab379e5054
Merge topic 'FindPython-3.13'
...
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-16 09:42:53 -04:00
Vasily Ryabov
dfab044c44
FindPython: add support for Python 3.13
...
Python 3.13.0a0 can be built from main branch of python/cpython though
there were no official releases yet.
2023-08-15 09:39:43 -04:00
Marc Chevrier
d6b9af5f91
FindPython: enhance MinGW support
...
Ensure python-config script can be used.
2023-08-05 14:23:43 +02:00
Brad King
653754794a
Merge topic 'FindPython-Debian-workaround'
...
b02f3872d0
FindPython: Restore Python_SITE* values for versions below 3.10
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8672
2023-08-01 09:22:31 -04:00
Marc Chevrier
b02f3872d0
FindPython: Restore Python_SITE* values for versions below 3.10
...
Debian based distributions have a buggy sysconfig package.
So, rely on distutils.sysconfig if python version is less than 3.10.
Fixes : #25135
2023-07-31 15:00:44 -04:00
Marc Chevrier
9b45210b05
FindPython: Add tests for IronPython v3
2023-06-29 17:07:56 +02:00
Marc Chevrier
988ac305bd
FindPython: update for distutils module deprecation
...
Fixes : #24956
2023-06-05 11:22:03 +02:00
Brad King
442ca1a59c
Merge topic 'FindPython-fix-launcher-typo'
...
31faf3945f
FindPython: fix interpreter launcher variable spelling
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8487
2023-05-18 09:19:20 -04:00
Ben Boeckel
31faf3945f
FindPython: fix interpreter launcher variable spelling
...
Reported-by: Johannes (#cmake Slack)
2023-05-17 07:02:07 -04:00
Marc Chevrier
9913c28ebb
FindPython: Add Windows/ARM support
...
Fixes : #24587
2023-03-26 10:58:12 +02:00
Marc Chevrier
4c902d675b
FindPython: ensure Stable ABI is correctly handled
...
Fixes : #24610
2023-03-20 08:10:53 -04:00
Marc Chevrier
764441e672
FindPython: fix erroneous ${CMAKE_SHARED_LIBRARY_SUFFIX} matching
...
Fixes : #24556
2023-03-01 12:34:13 +01:00
Brad King
caf5aea63f
Merge topic 'FindPython-CMP0007-NEW'
...
486b3c0850
FindPython: Policy CMP0007 must be set to NEW
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8104
2023-01-24 09:19:16 -05:00
Marc Chevrier
486b3c0850
FindPython: Policy CMP0007 must be set to NEW
...
Fixes : #24306
2023-01-21 15:08:21 +01:00
Marc Chevrier
77d734aede
FindPython: add support for Stable ABI
...
Fixes : #24141
2022-11-29 16:48:08 +01:00
Marc Chevrier
328d847f70
FindPython: enhance SOABI computation
...
Fixes : #24121 , #23651
2022-11-15 16:54:44 +01:00
Marc Chevrier
71bdf78bda
FindPython: remove unnecessary components interdependence
...
Fixes : #23716
2022-07-19 16:22:42 +02:00
Brad King
3fcdc98b7d
Merge topic 'FindPython-multiple-queries'
...
ece3bedbf2
FindPython: fix error on multiple queries with different COMPONENTS
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7410
2022-06-28 09:22:55 -04:00
Marc Chevrier
ece3bedbf2
FindPython: fix error on multiple queries with different COMPONENTS
...
Ensure that multiple queries with different COMPONENTS specified in
different sub-directories are fully supported.
2022-06-27 13:16:29 -04:00
Marc Chevrier
e8e5af0278
FindPython: enhance search criterias
...
Use VALIDATOR option of find_* commands to add more criterias to the search:
* version
* architecture
Fixes : #22319
2022-06-22 16:47:56 +02:00
Marc Chevrier
0201530bdb
FindPython: enhance windows registry handling
2022-06-21 22:52:02 +02:00
Marc Chevrier
8de50bae84
FindPython*: enhance interpreter lookup
...
Fixes : #23588
2022-06-05 14:44:04 +02:00
Michael Hirsch
ca2877c039
FindPython: add support for Python 3.12
2022-05-12 10:55:11 -04:00
Marc Chevrier
fff8d5b212
FindPython: fix typo error
...
Fixes : #23476
2022-05-03 10:46:13 +02:00
Marc Chevrier
5440eafaae
FindPython: Add support for pypy v7.3.9 and uppers
...
Library name versioning has changed.
Fixes : #23439
2022-04-20 15:29:50 +02:00
Marc Chevrier
2834cea155
FindPython: fix various problems using pypy interpreters
...
* 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
2022-03-17 14:53:40 +01:00
Tomáš Hrnčiar
43844c5d82
FindPython: Add support for Python 3.11
2021-12-07 12:41:01 -05:00
Marc Chevrier
2636ad5045
FindPython: Ensure homebrew on Mac M1 is used
...
Fixes : #22581
2021-09-03 14:59:52 +02:00
Brad King
fc76273519
Merge topic 'FindPython-fix-variable-handling'
...
754f4f6876
FindPython: fix erroneous variable handling
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5816
2021-02-16 12:07:17 -05:00
Marc Chevrier
754f4f6876
FindPython: fix erroneous variable handling
...
Fixes : #21817
2021-02-16 10:46:28 -05:00
Brad King
6412d17b4f
Merge topic 'FindPython-python2-soabi-suffix-fix'
...
afb0ffcac7
FindPython2: avoid doubling the extension in CPython2 SOABI
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5574
2020-12-08 10:18:29 -05:00
Brad King
61cd587ef3
Merge topic 'FindPython-python2-soabi-suffix-fix' into release-3.19
...
afb0ffcac7
FindPython2: avoid doubling the extension in CPython2 SOABI
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5574
2020-12-08 10:18:28 -05:00
Ben Boeckel
afb0ffcac7
FindPython2: avoid doubling the extension in CPython2 SOABI
...
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-12-04 14:01:27 -05:00
Marc Chevrier
1c912056a1
cmake_path: remove new command from 3.19
...
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-03 09:55:35 -05:00
Marc Chevrier
e452f6e2cf
FindPython: Adds control over artifact names to search
...
Fixes : #21371
2020-11-03 15:12:58 +01:00
Marc Chevrier
23cd98a66a
FindPython: Add support of version 3.10
2020-10-16 11:36:53 +02:00
Marc Chevrier
5772ca0a53
FindPython: Ensure Apple Xcode python 3 is usable
...
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-10-12 15:45:55 +02:00
Marc Chevrier
e4b7049230
FindPython: Add version range support
...
Fixes : #21107
2020-09-30 14:30:23 +02:00
Marc Chevrier
6c094c1c1e
FindPython: Fix erroneous regex in ABI check
...
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
2020-09-23 11:37:20 -04:00
Marc Chevrier
0670797d71
FindPython: CMP0012 must be set to NEW
...
Fixes : #21168
2020-09-07 18:19:30 +02:00
Marc Chevrier
6fdfe2428d
FindPython: enhance ABI checks against include directory
...
Fixes : #21149
2020-09-02 15:41:16 +02:00
Marc Chevrier
72822e26c9
FindPython: enhance robustness of version extraction from library name
...
Fixes : #21105
2020-08-18 12:30:47 +02:00
Marc Chevrier
951640f1f9
FindPython: manage SOABI for all Python versions
...
Fixes : #21070
2020-08-11 10:16:40 +02:00
Marc Chevrier
a92d384548
FindPython: ensure user's policies are respected
...
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
2020-08-07 09:24:18 -04:00
Marc Chevrier
e7b9f928f7
FindPython: use CMAKE specific variables to look-up debug library
...
Fixes : #20714
2020-05-18 15:11:19 +02:00
Marc Chevrier
e8ffc60220
FindPython: Add IronPython support on all platforms
2020-05-11 14:02:59 +02:00
Marc Chevrier
e1c869906c
FindPython: ensure any specified version is correctly handled
...
Fixes : #20674
2020-05-07 11:20:43 +02:00
Marc Chevrier
c1ef70d4d1
FindPython: Add support for 'PyPy'
2020-05-01 15:03:04 +02:00
Marc Chevrier
e67dba730e
FindPython: fix error on FPHSA call
2020-04-29 13:41:56 +02:00
Marc Chevrier
d2c47c822b
FindPython: Add capability to specify Python implementations
...
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
2020-04-28 13:56:18 +02:00