Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.56 KB

File metadata and controls

36 lines (26 loc) · 1.56 KB

CPython Pixi packages

This directory contains definitions for Pixi packages which can be built from the CPython source code.

Downstream developers can make use of these packages by adding them as Git dependencies in a Pixi workspace, like:

[dependencies]
python = { git = "https://github.com/python/cpython", subdirectory = "Tools/pixi-packages/asan" }

This is particularly useful when developers need to build CPython from source (for example, for an ASan-instrumented build), as it does not require any manual clone or build steps. Instead, Pixi will automatically handle both the build and installation of the package.

Each package definition is contained in a subdirectory, but they share the build script build.sh in this directory. Currently defined package variants:

  • default
  • asan: ASan-instrumented build with PYTHON_ASAN=1

Maintenance

  • Keep the version fields in each recipe.yaml up to date with the Python version
  • Keep the dependency requirements up to date in each recipe.yaml
  • Update build.sh for any breaking changes in the configure and make workflow

Opportunities for future improvement

  • More package variants (such as TSan, UBSan)
  • Support for Windows
  • Using a single pixi.toml and recipe.yaml for all package variants is blocked on prefix-dev/pixi#4599
  • A workaround can be removed from the build script once prefix-dev/rattler-build#2012 is resolved