python3-scikit-build-core: Upgrade 0.12.2 -> 1.0.3
PATCH 1/2 python3-scikit-build-core: Upgrade 0.12.2 -> 1.0.3
Upgrade to release 1.0.3:
Fixes:
- Complete the setuptools SubCommand protocol
- Thread config_settings to the build command
- Keep source tree clean in strict editable mode
Documentation:
- Put uv first in installer tabs and add it to config-settings
- List choices for Literal options in the README table
- Touch up README options tables, setuptools docs
- Show the projects list as a card grid with language/binding badges
- Add high-star projects to the known projects list
CI and testing:
- Make linkcheck retry timeouts from slow hosts
- Forward -C config-settings in downstream editable install
Include a patch to rename directory name from ${module} __module__ to avoid error due to an unexpanded bitbake variable.
This work was sponsored by GOVCERT.LU.
---
...-builder.py-Check-PYTHON_INCLUDE_DIR.patch | 15 ++-
...c-scikit_build_core-Don-t-use-module.patch | 107 ++++++++++++++++++
....bb => python3-scikit-build-core_1.0.3.bb} | 3 +-
3 files changed, 118 insertions(+), 7 deletions(-)
create mode 100644 meta-python/recipes-devtools/python/python3-scikit-build-core/0001-src-scikit_build_core-Don-t-use-module.patch
rename meta-python/recipes-devtools/python/{python3-scikit-build-core_0.12.2.bb => python3-scikit-build-core_1.0.3.bb} (76%)meta-python/recipes-devtools/python/python3-scikit-build-core/0001-builder.py-Check-PYTHON_INCLUDE_DIR.patch +9 -6
@@ -1,4 +1,4 @@ -From 0aee90d953406414f09740a6ef851ed7e666dc9e Mon Sep 17 00:00:00 2001 +From 7aa7a9be9c1d7906b9d4e8f89c078887e8dc5bfc Mon Sep 17 00:00:00 2001 From: Leon Anavi <[email protected]> Date: Mon, 27 Jan 2025 19:17:48 +0200 Subject: [PATCH] builder.py: Check PYTHON_INCLUDE_DIR
@@ -15,15 +15,18 @@ Signed-off-by: Leon Anavi <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scikit_build_core/builder/builder.py b/src/scikit_build_core/builder/builder.py -index d05065f..b01d621 100644 +index 4be0cca..0fc54f4 100644 --- a/src/scikit_build_core/builder/builder.py +++ b/src/scikit_build_core/builder/builder.py -@@ -228,7 +228,7 @@ class Builder: - python_sabi_library = ( - get_python_library(self.config.env, abi3=True) if limited_api else None - ) +@@ -395,7 +395,7 @@ class Builder: + python_sabi_library = get_python_library(self.config.env, abi3t=True) + elif sabi == _SabiMode.ABI3: + python_sabi_library = get_python_library(self.config.env, abi3=True) - python_include_dir = get_python_include_dir() + python_include_dir = os.getenv("PYTHON_INCLUDE_DIR") or get_python_include_dir() numpy_include_dir = get_numpy_include_dir() # Warning for CPython 3.13.4 Windows bug +-- +2.47.3 +
meta-python/recipes-devtools/python/python3-scikit-build-core/0001-src-scikit_build_core-Don-t-use-module.patch new file +107 -0
107 lines not on this page · raw message
meta-python/recipes-devtools/python/python3-scikit-build-core_1.0.3.bb renamed from meta-python/recipes-devtools/python/python3-scikit-build-core_0.12.2.bb +2 -1
@@ -12,7 +12,8 @@ inherit pypi python_hatchling SRC_URI += " \ file://0001-builder.py-Check-PYTHON_INCLUDE_DIR.patch \ file://0001-Find-cmake-from-PATH-instead-of-CMAKE_BIN_DIR.patch \ + file://0001-src-scikit_build_core-Don-t-use-module.patch \ " -SRC_URI[sha256sum] = "562e0bbc9de1a354c87825ccf732080268d6582a0200f648e8c4a2dcb1e3736d" +SRC_URI[sha256sum] = "a4d7a05978ee37975c37743510c8991e2debce7ef83afb0a07c0c576fd4f16e8" BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.47.3
PATCH 2/2 python3-lief: Upgrade 0.17.3 -> 1.0.0
Upgrade to release 1.0.0:
- Add Android JNI Analyzer
- The DWARF import plugin now supports comments
- Add support for generating DWARF from firmware or binaries without a precise format or architecture
- Add support for accessing the bit size of bit-field declarations
- Add support for accessing Enum entries:
lief.dwarf.types.Enum.entries()
- Add support for reading from or assigning a register to a function parameter
- Add support for reading from or assigning a description (DW_AT_description) to a lief.dwarf.Function, lief.dwarf.Variable, or lief.dwarf.LexicalBlock:
lief.dwarf.Function.description() lief.dwarf.Variable.description() lief.dwarf.LexicalBlock.description()
- Enable the creation of nested lief.dwarf.editor.Function.LexicalBlock
- Add support for generating a C/C++ definition for a whole lief.dwarf.CompilationUnit ( lief.dwarf.CompilationUnit.to_decl()). The output of the following to_decl() functions can now be configured through the new lief.DeclOpt structure:
lief.dwarf.Function.to_decl() lief.dwarf.Variable.to_decl()
lief.dwarf.Type.to_decl() lief.dwarf.CompilationUnit.to_decl()
- Improve support and the API for LF_ENUM: lief.pdb.types.Enum
- Improve support and the API for LF_PROCEDURE: lief.pdb.types.Function
- Improve support and the API for LF_ARRAY: lief.pdb.types.Array
- Improve support and the API for simple types: lief.pdb.types.Simple
- Improve support and the API for LF_ONEMETHOD: lief.pdb.types.Method
- Add support for generating a C/C++ definition for a lief.pdb.Function ( lief.pdb.Function.to_decl()) and a lief.pdb.CompilationUnit ( lief.pdb.CompilationUnit.to_decl()), configurable with the new lief.DeclOpt structure.
- Add support for DT_AUXILIARY tag: lief.ELF.DynamicEntryAuxiliary
- Add support for DT_FILTER tag: lief.ELF.DynamicEntryFilter
- Add lief.ELF.parse_from_dump() to parse an ELF binary from a memory dump
- Add lief.COFF.Section.coff_string for accessing the full section name when this name does not fit in 8 bytes.
- Add support for writing big-endian Mach-O binaries
- Introduce an API for selecting a specific Mach-O binary by architecture from a FAT binary
- Add lief.MachO.FatBinary.create() to create a FAT binary from a list of lief.MachO.Binary objects targeting different architectures
- Add support for lief.MachO.ThreadLocalVariables
- Fix an extra byte being written after the thread state of an LC_UNIXTHREAD/LC_THREAD command, which shifted the following load commands by one byte
- Add support for editing the runtime tables of the LC_FUNCTION_VARIANTS command and committing the changes on write:
lief.MachO.FunctionVariants
- Add a structured parser, editing API and writer for the LC_FUNCTION_VARIANT_FIXUPS command:
lief.MachO.FunctionVariantFixups
- Add support for the LC_LAZY_LOAD_DYLIB_INFO command:
lief.MachO.LazyLoadDylibInfo
- Add lief.MachO.parse_from_dump() to parse a Mach-O binary from a memory dump
- Add setters for lief.PE.ImportEntry.iat_value and lief.PE.ImportEntry.ilt_value
- Add lief.PE.Binary.offset_to_rva() to convert a raw offset into a RVA
- Add lief.PE.parse_from_dump() to parse a PE binary from a memory dump
- Update lief.Binary.offset_to_virtual_address() for PE binaries to return an absolute virtual address instead of a RVA
- Add support for adding an lief.PE.Import at a specific position:
lief.PE.Binary.add_import()
- Improve support for EFI binaries, such as bzImage
- Add support for Objective-C categories: lief.ObjC.Category, accessible through lief.ObjC.Metadata.categories
- Add support for iterating over the operands of MIPS, PowerPC, eBPF and RISC-V instructions (Register, Immediate, Memory and PCRelative):
lief.assembly.mips.Instruction.operands() lief.assembly.powerpc.Instruction.operands() lief.assembly.ebpf.Instruction.operands() lief.assembly.riscv.Instruction.operands()
- The Rust FFI no longer relies on autocxx and bindgen. It is now built on top of plain cxx, which simplifies the bindings and reduces the iteration time
- The Rust bindings directory has been renamed from api/rust/cargo/ to api/rust/crates/
- Add support for the aarch64-linux-android and x86_64-linux-android targets
- Add LIEF_LIFETIMEBOUND annotations wrapping [[clang::lifetimebound]] to leverage Clang's lifetime analysis. This helps detect dangling references at compile time for methods that return references or iterators tied to an object's lifetime
This work was sponsored by GOVCERT.LU.
License-Update: Update years
---
...equirements.txt-Allow-newer-versions.patch | 28 +++++++++----------
...3-lief_0.17.3.bb => python3-lief_1.0.0.bb} | 6 ++--
2 files changed, 17 insertions(+), 17 deletions(-)
rename meta-python/recipes-devtools/python/{python3-lief_0.17.3.bb => python3-lief_1.0.0.bb} (85%)meta-python/recipes-devtools/python/python3-lief/0001-build-requirements.txt-Allow-newer-versions.patch +14 -14
@@ -15,20 +15,20 @@ Signed-off-by: Leon Anavi <[email protected]> --- a/api/python/build-requirements.txt +++ b/api/python/build-requirements.txt @@ -1,10 +1,10 @@ --tomli==2.2.1 --scikit-build-core==0.11.1 -+tomli>=2.2.1 -+scikit-build-core>=0.11.1 +-tomli==2.4.1 +-scikit-build-core==1.0.3 ++tomli>=2.4.1 ++scikit-build-core>=1.0.3 # For Ninja: msvc.msvc14_get_vc_env --setuptools==70.2.0 -+setuptools>=70.2.0 +-setuptools==83.0.0 ++setuptools>=83.0.0 # For the "env" feature --pydantic==2.11.3 -+pydantic>=2.11.3 +-pydantic==2.13.4 ++pydantic>=2.13.4 # Implicit from scikit-build-core --pathspec==0.12.1 --build==1.2.1 --wheel==0.45.1 -+pathspec>=0.12.1 -+build>=1.2.1 -+wheel>=0.45.1 +-pathspec==1.1.1 +-build==1.5.1 +-wheel==0.47.0 ++pathspec>=1.1.1 ++build>=1.5.1 ++wheel>=0.47.0
meta-python/recipes-devtools/python/python3-lief_1.0.0.bb renamed from meta-python/recipes-devtools/python/python3-lief_0.17.3.bb +3 -3
@@ -2,12 +2,12 @@ SUMMARY = "Library to instrument executable formats" DESCRIPTION = "LIEF: Library to Instrument Executable Formats" HOMEPAGE = "https://github.com/lief-project/LIEF" LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=9ab5db472ff936b441055522f5000547" +LIC_FILES_CHKSUM = "file://LICENSE;md5=c43f89548372352eb04f30367ec7a0f3" SECTION = "libs" -SRCREV = "03aca30b53db2f336b36f90843061bb3f840ff5a" +SRCREV = "d05b3499b6934137e917c009a4df0a9dc8cb11c5" SRC_URI = " \ - git://github.com/lief-project/LIEF.git;protocol=https;branch=release/0.17.x;tag=${PV} \ + git://github.com/lief-project/LIEF.git;protocol=https;branch=main;tag=${PV} \ file://0001-build-requirements.txt-Allow-newer-versions.patch \ file://0002-api-python-config-default.toml-Debug.patch \ "
Signature · 1 line
2.47.3