Skip to content

Commit e33bc48

Browse files
committed
Don't use symlinks 2/2
1 parent defe6a6 commit e33bc48

File tree

9 files changed

+331
-0
lines changed

9 files changed

+331
-0
lines changed

Tools/pixi-packages/asan/pixi.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# NOTE: Please always only modify default/pixi.toml and then run clone-recipe.sh to
2+
# propagate the changes to the other variants.
3+
4+
[workspace]
5+
channels = ["https://prefix.dev/conda-forge"]
6+
platforms = ["linux-64", "linux-aarch64", "osx-64", "osx-arm64"]
7+
preview = ["pixi-build"]
8+
9+
[package.build.backend]
10+
name = "pixi-build-rattler-build"
11+
version = "*"
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# NOTE: Please always only modify default/recipe.yaml and then run clone-recipe.sh to
2+
# propagate the changes to the other variants.
3+
4+
context:
5+
# Keep up to date
6+
freethreading_tag: ${{ "t" if "freethreading" in variant else "" }}
7+
8+
recipe:
9+
name: python
10+
11+
source:
12+
- path: ../../..
13+
14+
outputs:
15+
- package:
16+
name: python_abi
17+
version: ${{ version }}
18+
build:
19+
string: "0_${{ abi_tag }}"
20+
requirements:
21+
run_constraints:
22+
- python ${{ version }}.* *_${{ abi_tag }}
23+
24+
- package:
25+
name: python
26+
version: ${{ version }}
27+
build:
28+
string: "0_${{ abi_tag }}"
29+
files:
30+
exclude:
31+
- "*.o"
32+
script:
33+
file: ../build.sh
34+
env:
35+
PYTHON_VARIANT: ${{ variant }}
36+
python:
37+
site_packages_path: "lib/python${{ version }}${{ freethreading_tag }}/site-packages"
38+
39+
# derived from https://github.com/conda-forge/python-feedstock/blob/main/recipe/meta.yaml
40+
requirements:
41+
build:
42+
- ${{ compiler('c') }}
43+
- ${{ compiler('cxx') }}
44+
# Note that we are not using stdlib arguments which means the packages
45+
# are built for the build settings and are not relocatable to a different
46+
# machine that has a older system version. (eg: macOS/glibc version)
47+
- make
48+
- pkg-config
49+
# configure script looks for llvm-ar for lto
50+
- if: osx
51+
then:
52+
- llvm-tools
53+
54+
host:
55+
- bzip2
56+
- sqlite
57+
- liblzma-devel
58+
- zlib
59+
- zstd
60+
- openssl
61+
- readline
62+
- tk
63+
# These two are just to get the headers needed for tk.h, but is unused
64+
- xorg-libx11
65+
- xorg-xorgproto
66+
- ncurses
67+
- libffi
68+
- if: linux
69+
then:
70+
- libuuid
71+
- libmpdec-devel
72+
- expat
73+
- if: linux and "san" in variant
74+
then:
75+
- libsanitizer
76+
- if: osx and "san" in variant
77+
then:
78+
- libcompiler-rt
79+
80+
ignore_run_exports:
81+
from_package:
82+
- xorg-libx11
83+
- xorg-xorgproto
84+
85+
run_exports:
86+
noarch:
87+
- python
88+
weak:
89+
- python_abi ${{ version }}.* *_${{ abi_tag }}
90+
91+
about:
92+
homepage: https://www.python.org/
93+
license: Python-2.0
94+
license_file: LICENSE
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
# Please always only modify default/recipe.yaml and default/pixi.toml and then run this
4+
# script to propagate the changes to the other variants.
5+
set -o errexit
6+
cd "$(dirname "$0")"
7+
8+
for variant in asan freethreading tsan-freethreading; do
9+
cp -av default/recipe.yaml default/pixi.toml ${variant}/
10+
done

Tools/pixi-packages/default/pixi.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# NOTE: Please always only modify default/pixi.toml and then run clone-recipe.sh to
2+
# propagate the changes to the other variants.
3+
14
[workspace]
25
channels = ["https://prefix.dev/conda-forge"]
36
platforms = ["linux-64", "linux-aarch64", "osx-64", "osx-arm64"]

Tools/pixi-packages/default/recipe.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# NOTE: Please always only modify default/recipe.yaml and then run clone-recipe.sh to
2+
# propagate the changes to the other variants.
3+
14
context:
25
# Keep up to date
36
freethreading_tag: ${{ "t" if "freethreading" in variant else "" }}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# NOTE: Please always only modify default/pixi.toml and then run clone-recipe.sh to
2+
# propagate the changes to the other variants.
3+
4+
[workspace]
5+
channels = ["https://prefix.dev/conda-forge"]
6+
platforms = ["linux-64", "linux-aarch64", "osx-64", "osx-arm64"]
7+
preview = ["pixi-build"]
8+
9+
[package.build.backend]
10+
name = "pixi-build-rattler-build"
11+
version = "*"
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# NOTE: Please always only modify default/recipe.yaml and then run clone-recipe.sh to
2+
# propagate the changes to the other variants.
3+
4+
context:
5+
# Keep up to date
6+
freethreading_tag: ${{ "t" if "freethreading" in variant else "" }}
7+
8+
recipe:
9+
name: python
10+
11+
source:
12+
- path: ../../..
13+
14+
outputs:
15+
- package:
16+
name: python_abi
17+
version: ${{ version }}
18+
build:
19+
string: "0_${{ abi_tag }}"
20+
requirements:
21+
run_constraints:
22+
- python ${{ version }}.* *_${{ abi_tag }}
23+
24+
- package:
25+
name: python
26+
version: ${{ version }}
27+
build:
28+
string: "0_${{ abi_tag }}"
29+
files:
30+
exclude:
31+
- "*.o"
32+
script:
33+
file: ../build.sh
34+
env:
35+
PYTHON_VARIANT: ${{ variant }}
36+
python:
37+
site_packages_path: "lib/python${{ version }}${{ freethreading_tag }}/site-packages"
38+
39+
# derived from https://github.com/conda-forge/python-feedstock/blob/main/recipe/meta.yaml
40+
requirements:
41+
build:
42+
- ${{ compiler('c') }}
43+
- ${{ compiler('cxx') }}
44+
# Note that we are not using stdlib arguments which means the packages
45+
# are built for the build settings and are not relocatable to a different
46+
# machine that has a older system version. (eg: macOS/glibc version)
47+
- make
48+
- pkg-config
49+
# configure script looks for llvm-ar for lto
50+
- if: osx
51+
then:
52+
- llvm-tools
53+
54+
host:
55+
- bzip2
56+
- sqlite
57+
- liblzma-devel
58+
- zlib
59+
- zstd
60+
- openssl
61+
- readline
62+
- tk
63+
# These two are just to get the headers needed for tk.h, but is unused
64+
- xorg-libx11
65+
- xorg-xorgproto
66+
- ncurses
67+
- libffi
68+
- if: linux
69+
then:
70+
- libuuid
71+
- libmpdec-devel
72+
- expat
73+
- if: linux and "san" in variant
74+
then:
75+
- libsanitizer
76+
- if: osx and "san" in variant
77+
then:
78+
- libcompiler-rt
79+
80+
ignore_run_exports:
81+
from_package:
82+
- xorg-libx11
83+
- xorg-xorgproto
84+
85+
run_exports:
86+
noarch:
87+
- python
88+
weak:
89+
- python_abi ${{ version }}.* *_${{ abi_tag }}
90+
91+
about:
92+
homepage: https://www.python.org/
93+
license: Python-2.0
94+
license_file: LICENSE
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# NOTE: Please always only modify default/pixi.toml and then run clone-recipe.sh to
2+
# propagate the changes to the other variants.
3+
4+
[workspace]
5+
channels = ["https://prefix.dev/conda-forge"]
6+
platforms = ["linux-64", "linux-aarch64", "osx-64", "osx-arm64"]
7+
preview = ["pixi-build"]
8+
9+
[package.build.backend]
10+
name = "pixi-build-rattler-build"
11+
version = "*"
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# NOTE: Please always only modify default/recipe.yaml and then run clone-recipe.sh to
2+
# propagate the changes to the other variants.
3+
4+
context:
5+
# Keep up to date
6+
freethreading_tag: ${{ "t" if "freethreading" in variant else "" }}
7+
8+
recipe:
9+
name: python
10+
11+
source:
12+
- path: ../../..
13+
14+
outputs:
15+
- package:
16+
name: python_abi
17+
version: ${{ version }}
18+
build:
19+
string: "0_${{ abi_tag }}"
20+
requirements:
21+
run_constraints:
22+
- python ${{ version }}.* *_${{ abi_tag }}
23+
24+
- package:
25+
name: python
26+
version: ${{ version }}
27+
build:
28+
string: "0_${{ abi_tag }}"
29+
files:
30+
exclude:
31+
- "*.o"
32+
script:
33+
file: ../build.sh
34+
env:
35+
PYTHON_VARIANT: ${{ variant }}
36+
python:
37+
site_packages_path: "lib/python${{ version }}${{ freethreading_tag }}/site-packages"
38+
39+
# derived from https://github.com/conda-forge/python-feedstock/blob/main/recipe/meta.yaml
40+
requirements:
41+
build:
42+
- ${{ compiler('c') }}
43+
- ${{ compiler('cxx') }}
44+
# Note that we are not using stdlib arguments which means the packages
45+
# are built for the build settings and are not relocatable to a different
46+
# machine that has a older system version. (eg: macOS/glibc version)
47+
- make
48+
- pkg-config
49+
# configure script looks for llvm-ar for lto
50+
- if: osx
51+
then:
52+
- llvm-tools
53+
54+
host:
55+
- bzip2
56+
- sqlite
57+
- liblzma-devel
58+
- zlib
59+
- zstd
60+
- openssl
61+
- readline
62+
- tk
63+
# These two are just to get the headers needed for tk.h, but is unused
64+
- xorg-libx11
65+
- xorg-xorgproto
66+
- ncurses
67+
- libffi
68+
- if: linux
69+
then:
70+
- libuuid
71+
- libmpdec-devel
72+
- expat
73+
- if: linux and "san" in variant
74+
then:
75+
- libsanitizer
76+
- if: osx and "san" in variant
77+
then:
78+
- libcompiler-rt
79+
80+
ignore_run_exports:
81+
from_package:
82+
- xorg-libx11
83+
- xorg-xorgproto
84+
85+
run_exports:
86+
noarch:
87+
- python
88+
weak:
89+
- python_abi ${{ version }}.* *_${{ abi_tag }}
90+
91+
about:
92+
homepage: https://www.python.org/
93+
license: Python-2.0
94+
license_file: LICENSE

0 commit comments

Comments
 (0)