cmake 4.4.2__tar.gz → 4.4.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cmake-4.4.2 → cmake-4.4.4}/.github/workflows/build.yml +16 -8
- {cmake-4.4.2 → cmake-4.4.4}/.github/workflows/update-dependencies.yml +1 -1
- {cmake-4.4.2 → cmake-4.4.4}/.pre-commit-config.yaml +3 -3
- {cmake-4.4.2 → cmake-4.4.4}/CMakeLists.txt +1 -4
- cmake-4.4.4/CMakeUrls.cmake +26 -0
- {cmake-4.4.2 → cmake-4.4.4}/PKG-INFO +2 -2
- {cmake-4.4.2 → cmake-4.4.4}/README.rst +1 -1
- {cmake-4.4.2 → cmake-4.4.4}/_build_backend/backend.py +60 -23
- cmake-4.4.4/archive-cache/cmake-4.4.4.tar.gz +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/docs/building.rst +14 -6
- {cmake-4.4.2 → cmake-4.4.4}/docs/index.rst +1 -1
- {cmake-4.4.2 → cmake-4.4.4}/docs/make_a_release.rst +2 -2
- {cmake-4.4.2 → cmake-4.4.4}/docs/update_cmake_version.rst +2 -2
- {cmake-4.4.2 → cmake-4.4.4}/pyproject.toml +1 -1
- {cmake-4.4.2 → cmake-4.4.4}/scripts/manylinux-build-and-install-openssl.sh +2 -2
- {cmake-4.4.2 → cmake-4.4.4}/scripts/update_cmake_version.py +0 -4
- {cmake-4.4.2 → cmake-4.4.4}/tests/test_cmake.py +2 -2
- cmake-4.4.2/CMakeUrls.cmake +0 -29
- {cmake-4.4.2 → cmake-4.4.4}/.coveragerc +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/.git_archival.txt +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/.gitattributes +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/.github/dependabot.yml +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/.github/release.yml +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/.gitignore +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/.readthedocs.yaml +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/AUTHORS.rst +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/CONTRIBUTING.rst +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/HISTORY.rst +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/LICENSE_Apache_20 +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/LICENSE_BSD_3 +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/docs/authors.rst +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/docs/build_system.rst +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/docs/conf.py +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/docs/contributing.rst +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/docs/history.rst +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/docs/installation.rst +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/docs/usage.rst +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/noxfile.py +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/scripts/update_openssl_version.py +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/scripts/utils.sh +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/src/cmake/__init__.py +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/src/cmake/__main__.py +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/src/cmake/_version.pyi +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/src/cmake/py.typed +0 -0
- {cmake-4.4.2 → cmake-4.4.4}/tests/__init__.py +0 -0
|
@@ -102,16 +102,16 @@ jobs:
|
|
|
102
102
|
fetch-depth: 0 # required for versioneer to find tags
|
|
103
103
|
persist-credentials: false
|
|
104
104
|
|
|
105
|
-
- uses: astral-sh/setup-uv@
|
|
105
|
+
- uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
|
|
106
106
|
with:
|
|
107
107
|
enable-cache: false
|
|
108
108
|
|
|
109
109
|
- name: Set up QEMU
|
|
110
|
-
uses: docker/setup-qemu-action@
|
|
110
|
+
uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
|
|
111
111
|
if: matrix.arch == 'ppc64le' || matrix.arch == 'riscv64' || matrix.arch == 's390x'
|
|
112
112
|
|
|
113
113
|
- name: Build wheels
|
|
114
|
-
uses: pypa/cibuildwheel@
|
|
114
|
+
uses: pypa/cibuildwheel@e090b81e30c4d855ea63bf4b6e59204c09a101ae # v4.2.1
|
|
115
115
|
env:
|
|
116
116
|
CIBW_ARCHS: "${{ matrix.arch }}"
|
|
117
117
|
CIBW_BUILD: "cp310-${{ matrix.build }}*"
|
|
@@ -134,6 +134,9 @@ jobs:
|
|
|
134
134
|
- name: Build SDist
|
|
135
135
|
run: pipx run build --sdist
|
|
136
136
|
|
|
137
|
+
- name: Check bundled CMake source archive
|
|
138
|
+
run: tar tzf dist/*.tar.gz | grep -E '/archive-cache/cmake-[0-9.]+\.tar\.gz$'
|
|
139
|
+
|
|
137
140
|
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
138
141
|
with:
|
|
139
142
|
name: cibw-sdist
|
|
@@ -152,7 +155,7 @@ jobs:
|
|
|
152
155
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
153
156
|
with:
|
|
154
157
|
persist-credentials: false
|
|
155
|
-
- uses: astral-sh/setup-uv@
|
|
158
|
+
- uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
|
|
156
159
|
with:
|
|
157
160
|
enable-cache: false
|
|
158
161
|
|
|
@@ -171,9 +174,14 @@ jobs:
|
|
|
171
174
|
name: cibw-sdist
|
|
172
175
|
path: dist
|
|
173
176
|
|
|
174
|
-
|
|
177
|
+
# Dead proxy blocks the CMake download; PyPI stays reachable for build deps.
|
|
178
|
+
- name: Install SDist (offline, from bundled source)
|
|
175
179
|
env:
|
|
176
|
-
CMAKE_ARGS: "-DBUILD_CMAKE_FROM_SOURCE:BOOL=
|
|
180
|
+
CMAKE_ARGS: "-DBUILD_CMAKE_FROM_SOURCE:BOOL=ON"
|
|
181
|
+
CMAKE_BUILD_PARALLEL_LEVEL: "4"
|
|
182
|
+
http_proxy: "http://127.0.0.1:9"
|
|
183
|
+
https_proxy: "http://127.0.0.1:9"
|
|
184
|
+
no_proxy: "pypi.org,files.pythonhosted.org"
|
|
177
185
|
run: |
|
|
178
186
|
uv pip install dist/*.tar.gz
|
|
179
187
|
rm -rf dist
|
|
@@ -273,10 +281,10 @@ jobs:
|
|
|
273
281
|
path: dist
|
|
274
282
|
|
|
275
283
|
- name: Generate artifact attestation for sdist and wheel
|
|
276
|
-
uses: actions/attest
|
|
284
|
+
uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
|
|
277
285
|
with:
|
|
278
286
|
subject-path: "dist/cmake-*"
|
|
279
287
|
|
|
280
|
-
- uses: pypa/gh-action-pypi-publish@
|
|
288
|
+
- uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
|
|
281
289
|
with:
|
|
282
290
|
attestations: true
|
|
@@ -32,7 +32,7 @@ jobs:
|
|
|
32
32
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
33
33
|
with:
|
|
34
34
|
persist-credentials: false
|
|
35
|
-
- uses: wntrblm/nox@
|
|
35
|
+
- uses: wntrblm/nox@a976d7ee04ab7a13634adc1016d4755a1348225f # 2026.08.17
|
|
36
36
|
- name: "Run update: bump ${{ matrix.dependency_nice }}"
|
|
37
37
|
id: bump
|
|
38
38
|
run: |
|
|
@@ -18,13 +18,13 @@ repos:
|
|
|
18
18
|
- id: trailing-whitespace
|
|
19
19
|
|
|
20
20
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
21
|
-
rev:
|
|
21
|
+
rev: 321478e58f4938179c6b86e4ddfa923d1547a49b # frozen: v0.16.6
|
|
22
22
|
hooks:
|
|
23
23
|
- id: ruff-check
|
|
24
24
|
args: [--fix, --show-fixes]
|
|
25
25
|
|
|
26
26
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
27
|
-
rev:
|
|
27
|
+
rev: 7ff8d35ae36a7d2b968f2f90b4c723e292e594ee # frozen: v2.3.1
|
|
28
28
|
hooks:
|
|
29
29
|
- id: mypy
|
|
30
30
|
files: ^(src|scripts)
|
|
@@ -32,7 +32,7 @@ repos:
|
|
|
32
32
|
args: []
|
|
33
33
|
|
|
34
34
|
- repo: https://github.com/zizmorcore/zizmor-pre-commit
|
|
35
|
-
rev:
|
|
35
|
+
rev: cef8b8350da46d8114c7e6b7272aebdccdf193ce # frozen: v1.30.0
|
|
36
36
|
hooks:
|
|
37
37
|
- id: zizmor
|
|
38
38
|
files: "^\\.github"
|
|
@@ -37,7 +37,7 @@ if(CMakePythonDistributions_SUPERBUILD)
|
|
|
37
37
|
|
|
38
38
|
set(RUN_CMAKE_TEST_EXCLUDE "BootstrapTest" CACHE STRING "CMake test suite exclusion regex")
|
|
39
39
|
|
|
40
|
-
set(CMakePythonDistributions_ARCHIVE_DOWNLOAD_DIR "${
|
|
40
|
+
set(CMakePythonDistributions_ARCHIVE_DOWNLOAD_DIR "${CMAKE_SOURCE_DIR}/archive-cache"
|
|
41
41
|
CACHE PATH "Directory where to download archives"
|
|
42
42
|
)
|
|
43
43
|
|
|
@@ -60,9 +60,6 @@ if(CMakePythonDistributions_SUPERBUILD)
|
|
|
60
60
|
endfunction()
|
|
61
61
|
|
|
62
62
|
set(src_archive "unix_source")
|
|
63
|
-
if(WIN32)
|
|
64
|
-
set(src_archive "windows_source")
|
|
65
|
-
endif()
|
|
66
63
|
check_archive_var("${src_archive}")
|
|
67
64
|
|
|
68
65
|
set(binary_archive "linux32_binary")
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
#-----------------------------------------------------------------------------
|
|
3
|
+
# CMake sources
|
|
4
|
+
set(unix_source_url "https://github.com/Kitware/CMake/releases/download/v4.4.4/cmake-4.4.4.tar.gz")
|
|
5
|
+
set(unix_source_sha256 "bd24c30d80a7744ae84b845ff080cc8453b06c622ef01066564108e9cefc44cf")
|
|
6
|
+
|
|
7
|
+
#-----------------------------------------------------------------------------
|
|
8
|
+
# CMake binaries
|
|
9
|
+
|
|
10
|
+
set(linux32_binary_url "NA") # Linux 32-bit binaries not available
|
|
11
|
+
set(linux32_binary_sha256 "NA")
|
|
12
|
+
|
|
13
|
+
set(linux64_binary_url "https://github.com/Kitware/CMake/releases/download/v4.4.4/cmake-4.4.4-linux-x86_64.tar.gz")
|
|
14
|
+
set(linux64_binary_sha256 "e5bb807f7728cb60cd8b27ebc97a2edb469b68655f21e844a600c3575b76f5bb")
|
|
15
|
+
|
|
16
|
+
set(macos10_10_binary_url "https://github.com/Kitware/CMake/releases/download/v4.4.4/cmake-4.4.4-macos10.10-universal.tar.gz")
|
|
17
|
+
set(macos10_10_binary_sha256 "d6a8fe92599160bba0c76910ceaf8c8e38c7dcc00cc08d5a29d59da93283a558")
|
|
18
|
+
|
|
19
|
+
set(win32_binary_url "https://github.com/Kitware/CMake/releases/download/v4.4.4/cmake-4.4.4-windows-i386.zip")
|
|
20
|
+
set(win32_binary_sha256 "1a791472619ae85abf95e3f52838b746a47542ec731a288abac2fee8154d5664")
|
|
21
|
+
|
|
22
|
+
set(win64_binary_url "https://github.com/Kitware/CMake/releases/download/v4.4.4/cmake-4.4.4-windows-x86_64.zip")
|
|
23
|
+
set(win64_binary_sha256 "bace36e94b31c68ab6fa295f26dfa11219e0701cf7c94b0284a7d1cb13dac536")
|
|
24
|
+
|
|
25
|
+
set(winarm64_binary_url "https://github.com/Kitware/CMake/releases/download/v4.4.4/cmake-4.4.4-windows-arm64.zip")
|
|
26
|
+
set(winarm64_binary_sha256 "ed673bbc4eb7c1e59b0407fd52f1680fc0ae3229a46b9b7b3ea9133764f07f67")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cmake
|
|
3
|
-
Version: 4.4.
|
|
3
|
+
Version: 4.4.4
|
|
4
4
|
Summary: CMake is an open-source, cross-platform family of tools designed to build, test and package software
|
|
5
5
|
Keywords: CMake,build,c++,fortran,cross-platform,cross-compilation
|
|
6
6
|
Author-Email: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
|
|
@@ -37,7 +37,7 @@ The suite of CMake tools were created by Kitware in response to the need
|
|
|
37
37
|
for a powerful, cross-platform build environment for open-source projects
|
|
38
38
|
such as ITK and VTK.
|
|
39
39
|
|
|
40
|
-
The CMake python wheels provide `CMake 4.4.
|
|
40
|
+
The CMake python wheels provide `CMake 4.4.4 <https://cmake.org/cmake/help/v4.4/index.html>`_.
|
|
41
41
|
|
|
42
42
|
Installation
|
|
43
43
|
------------
|
|
@@ -11,7 +11,7 @@ The suite of CMake tools were created by Kitware in response to the need
|
|
|
11
11
|
for a powerful, cross-platform build environment for open-source projects
|
|
12
12
|
such as ITK and VTK.
|
|
13
13
|
|
|
14
|
-
The CMake python wheels provide `CMake 4.4.
|
|
14
|
+
The CMake python wheels provide `CMake 4.4.4 <https://cmake.org/cmake/help/v4.4/index.html>`_.
|
|
15
15
|
|
|
16
16
|
Installation
|
|
17
17
|
------------
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import os
|
|
4
|
+
from pathlib import Path
|
|
4
5
|
|
|
5
6
|
from scikit_build_core import build as _orig
|
|
6
7
|
|
|
8
|
+
# Archives are downloaded here (gitignored). The sdist bundles the unix source
|
|
9
|
+
# tarball in this directory so a build from the sdist needs no network.
|
|
10
|
+
_ARCHIVE_DIR = Path("archive-cache")
|
|
11
|
+
|
|
7
12
|
if hasattr(_orig, "prepare_metadata_for_build_editable"):
|
|
8
13
|
prepare_metadata_for_build_editable = _orig.prepare_metadata_for_build_editable
|
|
9
14
|
if hasattr(_orig, "prepare_metadata_for_build_wheel"):
|
|
10
15
|
prepare_metadata_for_build_wheel = _orig.prepare_metadata_for_build_wheel
|
|
11
16
|
build_editable = _orig.build_editable
|
|
12
|
-
build_sdist = _orig.build_sdist
|
|
13
17
|
get_requires_for_build_editable = _orig.get_requires_for_build_editable
|
|
14
18
|
get_requires_for_build_sdist = _orig.get_requires_for_build_sdist
|
|
15
19
|
|
|
@@ -46,24 +50,66 @@ def get_requires_for_build_wheel(
|
|
|
46
50
|
return packages
|
|
47
51
|
|
|
48
52
|
|
|
49
|
-
def
|
|
53
|
+
def _fetch_archive(kind: str, archive_dir: Path) -> Path:
|
|
54
|
+
"""
|
|
55
|
+
Return the path to the ``kind`` archive listed in ``CMakeUrls.cmake``,
|
|
56
|
+
downloading it into ``archive_dir`` if it is not already there. The SHA256
|
|
57
|
+
is always verified.
|
|
58
|
+
"""
|
|
50
59
|
import hashlib
|
|
51
|
-
import platform
|
|
52
60
|
import re
|
|
61
|
+
import urllib.request
|
|
62
|
+
|
|
63
|
+
cmake_urls = Path("CMakeUrls.cmake").read_text()
|
|
64
|
+
archive_url = re.findall(rf'set\({kind}_url\s+"(?P<data>.*)"\)$', cmake_urls, flags=re.MULTILINE)[0]
|
|
65
|
+
archive_sha256 = re.findall(rf'set\({kind}_sha256\s+"(?P<data>.*)"\)$', cmake_urls, flags=re.MULTILINE)[0]
|
|
66
|
+
|
|
67
|
+
archive_name = archive_url.rsplit("/", maxsplit=1)[1]
|
|
68
|
+
archive_path = archive_dir / archive_name
|
|
69
|
+
if not archive_path.exists():
|
|
70
|
+
archive_dir.mkdir(parents=True, exist_ok=True)
|
|
71
|
+
with urllib.request.urlopen(archive_url) as response:
|
|
72
|
+
archive_path.write_bytes(response.read())
|
|
73
|
+
|
|
74
|
+
sha256 = hashlib.sha256(archive_path.read_bytes()).hexdigest()
|
|
75
|
+
if archive_sha256.lower() != sha256.lower():
|
|
76
|
+
msg = f"Invalid sha256 for {archive_url!r}. Expected {archive_sha256!r}, got {sha256!r}"
|
|
77
|
+
raise ValueError(msg)
|
|
78
|
+
|
|
79
|
+
return archive_path
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def build_sdist(
|
|
83
|
+
sdist_directory: str,
|
|
84
|
+
config_settings: dict[str, list[str] | str] | None = None,
|
|
85
|
+
) -> str:
|
|
86
|
+
archive_path = _fetch_archive("unix_source", _ARCHIVE_DIR)
|
|
87
|
+
|
|
88
|
+
settings: dict[str, list[str] | str] = dict(config_settings or {})
|
|
89
|
+
include = settings.get("sdist.include", [])
|
|
90
|
+
if isinstance(include, str):
|
|
91
|
+
include = include.split(";")
|
|
92
|
+
settings["sdist.include"] = [*include, archive_path.as_posix()]
|
|
93
|
+
return _orig.build_sdist(sdist_directory, settings)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def _bootstrap_build(temp_path: str, config_settings: dict[str, list[str] | str] | None = None) -> str:
|
|
97
|
+
import platform
|
|
53
98
|
import shutil
|
|
54
99
|
import subprocess
|
|
55
100
|
import tarfile
|
|
56
|
-
import urllib.request
|
|
57
101
|
import zipfile
|
|
58
|
-
from pathlib import Path
|
|
59
102
|
|
|
60
103
|
env = os.environ.copy()
|
|
61
104
|
temp_path_ = Path(temp_path)
|
|
62
105
|
|
|
63
|
-
archive_dir =
|
|
106
|
+
archive_dir = _ARCHIVE_DIR
|
|
64
107
|
if config_settings:
|
|
65
|
-
|
|
66
|
-
|
|
108
|
+
archive_dir_setting = config_settings.get("cmake.define.CMakePythonDistributions_ARCHIVE_DOWNLOAD_DIR")
|
|
109
|
+
if isinstance(archive_dir_setting, list):
|
|
110
|
+
archive_dir_setting = archive_dir_setting[-1]
|
|
111
|
+
if archive_dir_setting:
|
|
112
|
+
archive_dir = Path(archive_dir_setting)
|
|
67
113
|
|
|
68
114
|
if os.name == "posix":
|
|
69
115
|
if "MAKE" not in env:
|
|
@@ -92,21 +138,8 @@ def _bootstrap_build(temp_path: str, config_settings: dict[str, list[str] | str]
|
|
|
92
138
|
raise ValueError(msg)
|
|
93
139
|
kind = kinds[machine]
|
|
94
140
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
archive_url = re.findall(rf'set\({kind}_url\s+"(?P<data>.*)"\)$', cmake_urls, flags=re.MULTILINE)[0]
|
|
98
|
-
archive_sha256 = re.findall(rf'set\({kind}_sha256\s+"(?P<data>.*)"\)$', cmake_urls, flags=re.MULTILINE)[0]
|
|
99
|
-
|
|
100
|
-
archive_name = archive_url.rsplit("/", maxsplit=1)[1]
|
|
101
|
-
archive_path = archive_dir / archive_name
|
|
102
|
-
if not archive_path.exists():
|
|
103
|
-
with urllib.request.urlopen(archive_url) as response:
|
|
104
|
-
archive_path.write_bytes(response.read())
|
|
105
|
-
|
|
106
|
-
sha256 = hashlib.sha256(archive_path.read_bytes()).hexdigest()
|
|
107
|
-
if archive_sha256.lower() != sha256.lower():
|
|
108
|
-
msg = f"Invalid sha256 for {archive_url!r}. Expected {archive_sha256!r}, got {sha256!r}"
|
|
109
|
-
raise ValueError(msg)
|
|
141
|
+
archive_path = _fetch_archive(kind, archive_dir)
|
|
142
|
+
archive_name = archive_path.name
|
|
110
143
|
|
|
111
144
|
if os.name == "posix":
|
|
112
145
|
assert archive_name.endswith(".tar.gz")
|
|
@@ -121,6 +154,10 @@ def _bootstrap_build(temp_path: str, config_settings: dict[str, list[str] | str]
|
|
|
121
154
|
prefix_path = temp_path_ / "cmake-install"
|
|
122
155
|
cmake_path = prefix_path / "bin" / "cmake"
|
|
123
156
|
bootstrap_args = [f"--prefix={prefix_path}", "--no-qt-gui", "--no-debugger", f"--parallel={parallel}", "--", "-DBUILD_TESTING=OFF", "-DBUILD_CursesDialog:BOOL=OFF"]
|
|
157
|
+
for name in ("OPENSSL_ROOT_DIR", "OPENSSL_USE_STATIC_LIBS"):
|
|
158
|
+
value = (config_settings or {}).get(f"cmake.define.{name}")
|
|
159
|
+
if value is not None:
|
|
160
|
+
bootstrap_args.append(f"-D{name}={value}")
|
|
124
161
|
previous_cwd = Path().absolute()
|
|
125
162
|
os.chdir(bootstrap_path.parent)
|
|
126
163
|
try:
|
|
Binary file
|
|
@@ -43,9 +43,16 @@ wheels on PyPI are produced with `cibuildwheel <https://cibuildwheel.pypa.io>`_
|
|
|
43
43
|
Source distribution (sdist)
|
|
44
44
|
---------------------------
|
|
45
45
|
|
|
46
|
-
The source distribution contains
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
The source distribution contains this project's sources plus the CMake source
|
|
47
|
+
tarball listed in ``CMakeUrls.cmake``, bundled as
|
|
48
|
+
``archive-cache/cmake-<version>.tar.gz``. Building the sdist downloads that
|
|
49
|
+
tarball, so it needs network access; building a wheel from the sdist with
|
|
50
|
+
``BUILD_CMAKE_FROM_SOURCE=ON`` (the default on Linux) does not.
|
|
51
|
+
|
|
52
|
+
``BUILD_CMAKE_FROM_SOURCE=OFF`` (the default on macOS and Windows) still
|
|
53
|
+
downloads a prebuilt binary archive at wheel-build time.
|
|
54
|
+
|
|
55
|
+
The source distribution is generated using the following command::
|
|
49
56
|
|
|
50
57
|
python -m build --sdist
|
|
51
58
|
|
|
@@ -101,9 +108,10 @@ in two ways.
|
|
|
101
108
|
Caching downloads
|
|
102
109
|
^^^^^^^^^^^^^^^^^
|
|
103
110
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
111
|
+
Archives are downloaded into ``archive-cache/`` in the source tree (gitignored)
|
|
112
|
+
and re-used by later builds when their hash matches. To use a different
|
|
113
|
+
location, pass
|
|
114
|
+
``-Ccmake.define.CMakePythonDistributions_ARCHIVE_DOWNLOAD_DIR=/path/to/cache``.
|
|
107
115
|
|
|
108
116
|
Re-using the build tree
|
|
109
117
|
^^^^^^^^^^^^^^^^^^^^^^^
|
|
@@ -10,7 +10,7 @@ The suite of CMake tools were created by Kitware in response to the need
|
|
|
10
10
|
for a powerful, cross-platform build environment for open-source projects
|
|
11
11
|
such as `ITK <https://itk.org>`_ and `VTK <https://vtk.org>`_.
|
|
12
12
|
|
|
13
|
-
The CMake python wheels provide `CMake 4.4.
|
|
13
|
+
The CMake python wheels provide `CMake 4.4.4 <https://cmake.org/cmake/help/v4.4/index.html>`_.
|
|
14
14
|
|
|
15
15
|
.. toctree::
|
|
16
16
|
:maxdepth: 2
|
|
@@ -27,8 +27,8 @@ Classic procedure
|
|
|
27
27
|
inline dependency metadata, so ``uv run`` handles the ``requests``
|
|
28
28
|
dependency). For example::
|
|
29
29
|
|
|
30
|
-
$ uv run scripts/update_cmake_version.py 4.4.
|
|
31
|
-
Collecting URLs and SHA256s from 'https://api.github.com/repos/Kitware/CMake/releases/tags/v4.4.
|
|
30
|
+
$ uv run scripts/update_cmake_version.py 4.4.4
|
|
31
|
+
Collecting URLs and SHA256s from 'https://api.github.com/repos/Kitware/CMake/releases/tags/v4.4.4'
|
|
32
32
|
[...]
|
|
33
33
|
|
|
34
34
|
It updates ``CMakeUrls.cmake``, ``pyproject.toml``, ``README.rst``,
|
|
@@ -5,7 +5,7 @@ backend-path = ["_build_backend"]
|
|
|
5
5
|
|
|
6
6
|
[project]
|
|
7
7
|
name = "cmake"
|
|
8
|
-
version = "4.4.
|
|
8
|
+
version = "4.4.4"
|
|
9
9
|
description = "CMake is an open-source, cross-platform family of tools designed to build, test and package software"
|
|
10
10
|
keywords = ["CMake", "build", "c++", "fortran", "cross-platform", "cross-compilation"]
|
|
11
11
|
readme = "README.rst"
|
|
@@ -10,8 +10,8 @@ set -o pipefail
|
|
|
10
10
|
MY_DIR=$(dirname "${BASH_SOURCE[0]}")
|
|
11
11
|
source $MY_DIR/utils.sh
|
|
12
12
|
|
|
13
|
-
OPENSSL_ROOT=openssl-3.5.
|
|
14
|
-
OPENSSL_HASH=
|
|
13
|
+
OPENSSL_ROOT=openssl-3.5.9
|
|
14
|
+
OPENSSL_HASH=603f5602e2eef00d77fbd429d34dcd5822bb301757a1bc9cdb24c670f1eb859a
|
|
15
15
|
|
|
16
16
|
cd /tmp
|
|
17
17
|
|
|
@@ -55,7 +55,6 @@ def get_cmake_archive_urls_and_sha256s(version: str, verbose: bool=False) -> dic
|
|
|
55
55
|
|
|
56
56
|
expected_files = {
|
|
57
57
|
f"cmake-{version}.tar.gz": "unix_source",
|
|
58
|
-
f"cmake-{version}.zip": "win_source",
|
|
59
58
|
f"cmake-{version}-linux-x86_64.tar.gz": "linux64_binary",
|
|
60
59
|
f"cmake-{version}-macos10.10-universal.tar.gz": "macos10_10_binary",
|
|
61
60
|
f"cmake-{version}-windows-i386.zip": "win32_binary",
|
|
@@ -121,9 +120,6 @@ def generate_cmake_variables(urls_and_sha256s: Mapping[str, tuple[str, str]]) ->
|
|
|
121
120
|
set(unix_source_url "{unix_source_url}")
|
|
122
121
|
set(unix_source_sha256 "{unix_source_sha256}")
|
|
123
122
|
|
|
124
|
-
set(windows_source_url "{win_source_url}")
|
|
125
|
-
set(windows_source_sha256 "{win_source_sha256}")
|
|
126
|
-
|
|
127
123
|
#-----------------------------------------------------------------------------
|
|
128
124
|
# CMake binaries
|
|
129
125
|
|
|
@@ -64,7 +64,7 @@ def _get_scripts():
|
|
|
64
64
|
|
|
65
65
|
@all_tools
|
|
66
66
|
def test_cmake_script(tool):
|
|
67
|
-
expected_version = "4.4.
|
|
67
|
+
expected_version = "4.4.4"
|
|
68
68
|
scripts = [script for script in _get_scripts() if script.stem == tool]
|
|
69
69
|
assert len(scripts) == 1
|
|
70
70
|
output = subprocess.check_output([str(scripts[0]), "--version"]).decode("ascii")
|
|
@@ -72,6 +72,6 @@ def test_cmake_script(tool):
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
def test_cmake_main():
|
|
75
|
-
expected_version = "4.4.
|
|
75
|
+
expected_version = "4.4.4"
|
|
76
76
|
output = subprocess.run([sys.executable, "-m", "cmake", "--version"], text=True, capture_output=True, check=False).stdout
|
|
77
77
|
assert output.splitlines()[0] == f"cmake version {expected_version}"
|
cmake-4.4.2/CMakeUrls.cmake
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
#-----------------------------------------------------------------------------
|
|
3
|
-
# CMake sources
|
|
4
|
-
set(unix_source_url "https://github.com/Kitware/CMake/releases/download/v4.4.2/cmake-4.4.2.tar.gz")
|
|
5
|
-
set(unix_source_sha256 "1db9e61e60b6e0874c86386340b910382f3c5e75b9fbfb44d122063129a2789d")
|
|
6
|
-
|
|
7
|
-
set(windows_source_url "https://github.com/Kitware/CMake/releases/download/v4.4.2/cmake-4.4.2.zip")
|
|
8
|
-
set(windows_source_sha256 "705850b0cce549242b667a6b8f77c2765c8810243165bc8ff526109d2fbb19df")
|
|
9
|
-
|
|
10
|
-
#-----------------------------------------------------------------------------
|
|
11
|
-
# CMake binaries
|
|
12
|
-
|
|
13
|
-
set(linux32_binary_url "NA") # Linux 32-bit binaries not available
|
|
14
|
-
set(linux32_binary_sha256 "NA")
|
|
15
|
-
|
|
16
|
-
set(linux64_binary_url "https://github.com/Kitware/CMake/releases/download/v4.4.2/cmake-4.4.2-linux-x86_64.tar.gz")
|
|
17
|
-
set(linux64_binary_sha256 "3ada9a3f5d8a85413579bdd0ea6aa8e8da86efdd6d15c91a1afa517f2021956c")
|
|
18
|
-
|
|
19
|
-
set(macos10_10_binary_url "https://github.com/Kitware/CMake/releases/download/v4.4.2/cmake-4.4.2-macos10.10-universal.tar.gz")
|
|
20
|
-
set(macos10_10_binary_sha256 "80710e6d054a8366ec5f202dd6c22f0c4ebd6f96221260b0793e80816f95260f")
|
|
21
|
-
|
|
22
|
-
set(win32_binary_url "https://github.com/Kitware/CMake/releases/download/v4.4.2/cmake-4.4.2-windows-i386.zip")
|
|
23
|
-
set(win32_binary_sha256 "76c149d4435503edfdb92ccc1d7c54b0e8cd787597e8bc9ca8deb849c9706e63")
|
|
24
|
-
|
|
25
|
-
set(win64_binary_url "https://github.com/Kitware/CMake/releases/download/v4.4.2/cmake-4.4.2-windows-x86_64.zip")
|
|
26
|
-
set(win64_binary_sha256 "e8139d85b3813bc38833142ae1940472e9a587e9b5d2718ac1804c60f4e57a64")
|
|
27
|
-
|
|
28
|
-
set(winarm64_binary_url "https://github.com/Kitware/CMake/releases/download/v4.4.2/cmake-4.4.2-windows-arm64.zip")
|
|
29
|
-
set(winarm64_binary_sha256 "8502cf1c5b1984e439d13df154c3c28d080d706efd52db4de1bb3cc7022db521")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|