This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
python3.yaml
72 lines (70 loc) · 1.76 KB
/
python3.yaml
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
package:
name: python3
version: 3.10.6
epoch: 0
description: "the Python programming language"
target-architecture:
- all
copyright:
- paths:
- "*"
attestation: TODO
license: PSF-2.0
dependencies:
runtime:
environment:
contents:
repositories:
- https://packages.wolfi.dev/bootstrap/stage2
keyring:
- https://packages.wolfi.dev/bootstrap/stage2/wolfi-signing.rsa.pub
packages:
- busybox
- ca-certificates-bundle
- build-base
- bzip2
- expat
- gdbm
- libffi
- linux-headers
- mpdecimal
- ncurses
- openssl
- readline
- sqlite
- xz
- zlib
pipeline:
- uses: fetch
with:
uri: https://www.python.org/ftp/python/${{package.version}}/Python-${{package.version}}.tar.xz
expected-sha256: f795ff87d11d4b0c7c33bc8851b0c28648d8a4583aa2100a98c22b4326b6d3f3
- name: Force use of system libraries
runs: |
rm -rf Modules/expat \
Modules/_ctypes/darwin* \
Modules/_ctypes/libffi*
- name: Configure
runs: |
./configure \
--host=${{host.triplet.gnu}} \
--build=${{host.triplet.gnu}} \
--target=${{host.triplet.gnu}} \
--prefix=/usr \
--enable-ipv6 \
--enable-loadable-sqlite-extensions \
--enable-optimizations \
--enable-shared \
--without-lto \
--with-computed-gotos \
--with-dbmliborder=gdbm:ndbm \
--with-system-expat \
--with-system-ffi \
--with-system-libmpdec \
--without-ensurepip
- uses: autoconf/make
- uses: autoconf/make-install
- name: Install python symlink
runs: |
ln -s python3 "${{targets.destdir}}"/usr/bin/python
- uses: strip