Skip to content

Commit

Permalink
feat: add python3
Browse files Browse the repository at this point in the history
This adds python3.

Signed-off-by: Andrew Rynhard <[email protected]>
  • Loading branch information
andrewrynhard authored and talos-bot committed Nov 19, 2020
1 parent 83dc352 commit 84c834e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
33 changes: 33 additions & 0 deletions python3/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: python3
dependencies:
- stage: base
- stage: zlib
steps:
- sources:
- url: https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tar.xz
destination: python.tar.xz
sha256: 9c73e63c99855709b9be0b3cc9e5b072cb60f37311e8c4e50f15576a0bf82854
sha512: b141039c9701a8cb0d15cd11a279153077524af4d0599e7d2c7279d4c18d05fda06b33ef82342d875de996c7117b7dc6eb154dc3669d38a1efa99801aeec6c5e
prepare:
- |
tar -xJf python.tar.xz --strip-components=1
mkdir build
cd build
sed -i '/def add_multiarch_paths/a \ return' ../setup.py
../configure \
--prefix=${TOOLCHAIN} \
--with-ensurepip=no
build:
- |
cd build
make -j $(nproc)
install:
- |
cd build
make DESTDIR=/rootfs install
finalize:
- from: /rootfs
to: /
3 changes: 2 additions & 1 deletion tools/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: tools
variant: scratch
shell: /toolchain/bin/bash
dependencies:
- image: "{{ .TOOLCHAIN_IMAGE }}"
- image: '{{ .TOOLCHAIN_IMAGE }}'
- stage: argp-standalone
- stage: autoconf
- stage: automake
Expand Down Expand Up @@ -48,6 +48,7 @@ dependencies:
- stage: protobuf
- stage: protoc-gen-go
- stage: python2
- stage: python3
- stage: rhash
- stage: sed
- stage: squashfs-tools
Expand Down

0 comments on commit 84c834e

Please sign in to comment.