forked from BobBuildTool/basement
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython3-setuptools.yaml
More file actions
34 lines (28 loc) · 826 Bytes
/
Copy pathpython3-setuptools.yaml
File metadata and controls
34 lines (28 loc) · 826 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
inherit: [patch]
metaEnvironment:
PKG_VERSION: "80.9.0"
PKG_LICENSE: "MIT"
checkoutSCM:
scm: url
url: ${GITHUB_MIRROR}/pypa/setuptools/archive/v${PKG_VERSION}.tar.gz
digestSHA256: 06921ef18c10968ab35116603645c6e64cde851ff3886838d9c448db5329fe35
stripComponents: 1
checkoutDeterministic: True
checkoutScript: |
patchApplySeries $<@python3-setuptools/*@>
buildTools: [python3]
buildVars: [PKG_VERSION]
buildScript: |
rm -rf install
mkdir -p build install
rsync -aH "$1/" build/
pushd build
python3 setup.py install \
--root "$PWD/../install" \
--prefix /usr
popd
for i in $(find install/usr/bin -type f -perm /111 || true) ; do
sed -i '1 s/^#!.*python3.*$/#!\/usr\/bin\/env python3/' $i
done
packageScript: |
rsync -a "$1/install/" .