Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Tools/pixi-packages/asan/pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ version = "*"

[package.build.config]
recipe = "../default/recipe.yaml"
experimental = true
4 changes: 0 additions & 4 deletions Tools/pixi-packages/asan/variants.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
variant:
- asan
abi_tag:
- asan_cp315
version:
- 3.15
8 changes: 8 additions & 0 deletions Tools/pixi-packages/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ else
exit 1
fi

VER_REF=$(cat configure.ac | grep "\[PYTHON_VERSION\]\, \[" | sed -n 's/.*\[\([0-9.]*\)\].*/\1/p')
VER=$(echo ${PKG_VERSION} | sed -E 's/^([0-9]+\.[0-9]+).*/\1/')

if [[ "${VER_REF}" != "${VER}" ]]; then
echo "Unexpected version from conda package. Got ${VER}. Expected ${VER_REF}"
exit 1
fi

# rattler-build by default set a target of 10.9
# override it to at least 10.12
case ${MACOSX_DEPLOYMENT_TARGET:-10.12} in
Expand Down
1 change: 1 addition & 0 deletions Tools/pixi-packages/default/pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ version = "*"

[package.build.config]
recipe = "../default/recipe.yaml"
experimental = true
4 changes: 3 additions & 1 deletion Tools/pixi-packages/default/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
# propagate the changes to the other variants.

context:
# Keep up to date
version: ${{ git.latest_tag(".")[1:] }}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tags start with v, for example: v3.15.0a8. Does that need stripping?

Also, in two weeks, we'll branch main to a 3.15 branch, and main will become the home for 3.16.

There won't be any 3.16 tags until October.

https://peps.python.org/pep-0826/

Will that cause a problem?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tags start with v, for example: v3.15.0a8. Does that need stripping?

Yes, I've stripped v by doing [1:].

There won't be any 3.16 tags until October.

Yes, that'll cause an issue if git describe --tags shows 3.15 instead of 3.16.

freethreading_tag: ${{ "t" if "freethreading" in variant else "" }}
abi_prefix: ${{ (variant | split("-"))[0] + "_" if "san" in variant else "" }}
abi_tag: ${{ abi_prefix }}cp${{ (version | split('.'))[:2] | join('') }}

recipe:
name: python
Expand Down
4 changes: 0 additions & 4 deletions Tools/pixi-packages/default/variants.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
variant:
- default
abi_tag:
- cp315
version:
- 3.15
1 change: 1 addition & 0 deletions Tools/pixi-packages/freethreading/pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ version = "*"

[package.build.config]
recipe = "../default/recipe.yaml"
experimental = true
4 changes: 0 additions & 4 deletions Tools/pixi-packages/freethreading/variants.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
variant:
- freethreading
abi_tag:
- cp315t
version:
- 3.15
1 change: 1 addition & 0 deletions Tools/pixi-packages/tsan-freethreading/pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ version = "*"

[package.build.config]
recipe = "../default/recipe.yaml"
experimental = true
4 changes: 0 additions & 4 deletions Tools/pixi-packages/tsan-freethreading/variants.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
variant:
- tsan-freethreading
abi_tag:
- tsan_cp315t
version:
- 3.15
Loading