forked from python/cpython-devcontainers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-builddeps.sh
More file actions
42 lines (30 loc) · 999 Bytes
/
install-builddeps.sh
File metadata and controls
42 lines (30 loc) · 999 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
#! /bin/bash -ex
# Install build tools and CPython dependencies on Fedora.
# Define dependencies as an array, for easier formatting & comments.
# see: https://www.gnu.org/software/bash/manual/html_node/Arrays.html
# Contents inspired by experience and
# https://github.com/devcontainers/features/tree/main/src/common-utils .
DEPS=(
# Bare minimum
/usr/bin/{blurb,clang,git}
# Shell niceties
/usr/bin/{fish,zsh}
bash-completion
bash-color-prompt
# Common tools
/usr/bin/{curl,grep,less,ln,lsof,man,rg,which}
# Compression
/usr/bin/{tar,xz,zip}
# Editors
/usr/bin/{emacs,vim}
# Tooling dependencies
/usr/bin/node
# Necessary for getting Python build dependencies
'dnf5-command(builddep)'
# LLVM sanitizer runtimes
compiler-rt
)
dnf -y --nodocs --setopt=install_weak_deps=False install ${DEPS[@]}
dnf -y --nodocs --setopt=install_weak_deps=False builddep python3
# Don't leave caches in the container
dnf -y clean all