-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.py
More file actions
50 lines (37 loc) · 849 Bytes
/
package.py
File metadata and controls
50 lines (37 loc) · 849 Bytes
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
# Based and improved from https://github.com/piratecrew/rez-python
name = "python"
version = "3.10.13"
description = """
The Python programming language.
"""
authors = [
"Guido van Rossum",
]
requires = [
"cmake-3",
"gcc-4.8+",
]
variants = [
[
"platform-linux",
],
]
tools = [
"2to3",
"idle",
"pip3",
"pydoc3",
"python3",
"python3-config",
]
build_system = "cmake"
with scope("config") as config:
config.build_thread_count = "logical_cores"
def commands():
env.PATH.prepend("{root}/bin")
env.LD_LIBRARY_PATH.prepend("{root}/lib")
env.PKG_CONFIG_PATH.prepend("{root}/lib/pkgconfig")
# Helper environment variables.
env.PYTHON_BINARY_PATH.set("{root}/bin")
env.PYTHON_INCLUDE_PATH.set("{root}/include")
env.PYTHON_LIBRARY_PATH.set("{root}/lib")