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