@@ -10,34 +10,34 @@ in a [Pixi workspace](https://pixi.sh/latest/first_workspace/), like:
1010``` toml
1111[dependencies ]
1212python.git = " https://github.com/python/cpython"
13- python.subdirectory = " Tools/pixi-packages/asan"
13+ python.subdirectory = " Tools/pixi-packages"
14+ python.flags = " asan"
1415```
1516
1617This is particularly useful when developers need to build CPython from source
1718(for example, for an ASan or TSan-instrumented build), as it does not require any manual
1819clone or build steps. Instead, Pixi will automatically handle both the build
1920and installation of the package.
2021
21- Each package definition is contained in a subdirectory, but they share the build script
22- ` build.sh ` in this directory. Currently defined package variants:
22+ Each package variant carries a 'flag' to enable selection of that variant — see
23+ [ the Pixi docs] (https://pixi.prefix.dev/latest/concepts/package_specifications/#extras-and-flags
24+ for details of how to use this. Currently defined package variants:
2325
2426- ` default `
2527- ` freethreading `
2628- ` asan ` : ASan-instrumented build
27- - ` tsan-freethreading ` : TSan-instrumented free-threading build
29+ - ` tsan_freethreading ` : TSan-instrumented free-threading build
2830
2931## Maintenance
3032
31- - Keep the ` abi_tag ` and ` version ` fields in each ` variants.yaml ` up to date with the
33+ - Keep the ` abi_tag ` and ` version ` fields in ` variants.yaml ` up to date with the
3234 Python version
3335- Update ` build.sh ` for any breaking changes in the ` configure ` and ` make ` workflow
3436
3537## Opportunities for future improvement
3638
3739- More package variants (such as UBSan)
3840- Support for Windows
39- - Using a single ` pixi.toml ` for all package variants is blocked on
40- [ pixi #5248 ] ( https://github.com/prefix-dev/pixi/issues/5248 )
4141
4242## Troubleshooting
4343
0 commit comments