Commit 7cd2d5b
committed
BLD: Ensure meson.build has the right version of Python
If `python3` is in the path, it might be picked up instead of the one
used to build. This is the case on GitHub actions, where cibuildwheel
seems to explicitly call the Python (3.11+) it wants, but `python3` is
in the hosted tool cache as an older version (3.9) that gets picked by
Meson. This matters because we need to run `setuptools_scm` to produce
the version, and it may not be installed in the `PATH`-based copy.
By specifying the version, Meson should skip the `PATH` option, and
choose its final fallback, the interpreter that it is itself running on.
While still not guaranteed to be correct everywhere, this should at
least work for CI.1 parent fa3e9da commit 7cd2d5b
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments