Files
test/build_files/build_environment/cmake/python_site_packages_binary.cmake
Ray Molenkamp 81e862140f Deps_builder: pydantic 2.11.7
As requested by @dr.sybren and approved by the admins

Also pydantics deps :

annotated-types 0.7.0
pydantic-core 2.33.2
typing-extensions 4.14.0
typing-inspection 0.4.1

these are installed as binary packages agreed upon with the admins

versions determined by just pip installing it and seeing what it dragged in.

as some of these are binary packages that will differ per platform, there will
be a per platform hash for some packages now unfortunately

Pull Request: https://projects.blender.org/blender/blender/pulls/140434
2025-07-04 15:25:17 +02:00

29 lines
993 B
CMake

# SPDX-FileCopyrightText: 2025 Blender Authors
#
# SPDX-License-Identifier: GPL-2.0-or-later
configure_file(${CMAKE_SOURCE_DIR}/cmake/python_binary_requirements.txt.in ${CMAKE_BINARY_DIR}/python_binary_requirements.txt @ONLY)
# `--require-hashes` accomplishes 2 things for us
#
# - it forces us to supply hashses and versions for all packages installed protecting against supply chain attacks
# - if during a version bump any deps gain additional deps, these won't be in our requirements file, thus miss the hashes for those deps
# and an error will occur alerting us to this situation.
ExternalProject_Add(external_python_site_packages_binary
DOWNLOAD_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
PREFIX ${BUILD_DIR}/site_packages
INSTALL_COMMAND ${PYTHON_BINARY} -m pip install --no-cache-dir -r ${CMAKE_BINARY_DIR}/python_binary_requirements.txt
--require-hashes
--only-binary :all:
)
add_dependencies(
external_python_site_packages_binary
external_python
)