-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
69 lines (60 loc) · 1.99 KB
/
pyproject.toml
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
[tool.cibuildwheel]
[tool.cibuildwheel.windows]
archs=["AMD64"]
before-all = "powershell {project}\\installGo.ps1"
skip = "cp36-win* cp37-win* pp*-win*"
environment= """
PATH="C:\\Go\\bin;C:\\Program Files\\Go\\bin;$PATH"
GOPATH="C:\\Go"
"""
[tool.cibuildwheel.linux]
archs=["auto64","aarch64"]
before-all = '''
switch_eol_centos_repos()
{
if [ "${AUDITWHEEL_POLICY}" == "manylinux2014" ] && [ "${AUDITWHEEL_ARCH}" != "s390x" ]; then
# Centos 7 is EOL and is no longer available from the usual mirrors, so switch
# to https://vault.centos.org
sed -i 's/enabled=1/enabled=0/g' /etc/yum/pluginconf.d/fastestmirror.conf
sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/*.repo
sed -i 's;^.*baseurl=http://mirror;baseurl=https://vault;g' /etc/yum.repos.d/*.repo
if [ "${AUDITWHEEL_ARCH}" == "aarch64" ] || [ "${AUDITWHEEL_ARCH}" == "ppc64le" ]; then
sed -i 's;/centos/7/;/altarch/7/;g' /etc/yum.repos.d/*.repo
fi
fi
}
switch_eol_centos_repos
if [ "${AUDITWHEEL_POLICY}" == "manylinux2014" ] && [ "${AUDITWHEEL_ARCH}" == "x86_64" ]
then
mkdir -p /usr/local
curl https://dl.google.com/go/go1.23.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
fi
if [ "${AUDITWHEEL_POLICY}" == "manylinux2014" ] && [ "${AUDITWHEEL_ARCH}" == "aarch64" ]
then
mkdir -p /usr/local
curl https://dl.google.com/go/go1.23.2.linux-arm64.tar.gz | tar -C /usr/local -xzf -
fi
'''
environment = """
PATH=$PATH:/usr/local/go/bin
"""
[tool.cibuildwheel.macos]
before-all = '''
brew install [email protected]
'''
environment = "PATH=/usr/local/opt/[email protected]/bin:/opt/homebrew/opt/[email protected]/bin:$PATH"
[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
before-all = '''
if [ "${AUDITWHEEL_ARCH}" == "x86_64" ]
then
wget https://golang.org/dl/go1.23.2.linux-amd64.tar.gz;tar -C /usr/local -xzf go1.23.2.linux-amd64.tar.gz
fi
if [ "${AUDITWHEEL_ARCH}" == "aarch64" ]
then
wget https://golang.org/dl/go1.23.2.linux-arm64.tar.gz;tar -C /usr/local -xzf go1.23.2.linux-arm64.tar.gz
fi
'''
environment = """
PATH=$PATH:/usr/local/go/bin
"""