Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit dae6bed

Browse files
author
Alistair Strachan
committed
Add a package for a minimal python 2.7 installation.
Signed-off-by: Alistair Strachan <astrachan@google.com>
1 parent 1781435 commit dae6bed

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

androdeb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ case $key in
3434
pull) PULL=1; shift || true; ;;
3535
buildtar) PREPARE=1; TARDIR="./"; config_full_build; shift || true; ;;
3636
--archive) TARF=$2; shift || true; shift || true; ;;
37+
--python2) source $spath/packages/python2; shift || true; ;;
3738
--tracers) source $spath/packages/tracers; shift || true; ;;
3839
--compilers) source $spath/packages/compilers; shift || true; ;;
3940
--editors) source $spath/packages/editors; shift || true; ;;

buildstrap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ $root rm -rf $OUT_TMP/usr/lib/share/ieee-data/*
6565
$root rm -rf $OUT_TMP/usr/share/man/*
6666
$root rm -rf $OUT_TMP/usr/lib/share/man/*
6767

68+
# Make python2.7 it the default python (if present)
69+
if [ -f $OUT_TMP/usr/bin/python2.7 ]; then
70+
$root ln -sf /usr/bin/python2.7 $OUT_TMP/usr/bin/python; fi
71+
6872
# Clone BCC if needed
6973
if [[ ! -z ${INSTALL_BCC:+x} ]]; then
7074
git clone https://github.com/iovisor/bcc.git $TDIR/debian/bcc-master

packages/python2

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
PACKAGES+="\
2+
iproute2
3+
iptables
4+
libbz2-1.0
5+
libcap2
6+
libcap2-bin
7+
libelf1
8+
libexpat1
9+
libip4tc0
10+
libip6tc0
11+
libiptc0
12+
libmnl0
13+
libnetfilter-conntrack3
14+
libnfnetlink0
15+
libpython2.7-minimal
16+
libpython2.7-stdlib
17+
libreadline7
18+
libsqlite3-0
19+
libssl1.1
20+
libxtables12
21+
mime-support
22+
openssl
23+
python2.7-minimal
24+
"

utils/banners

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ usage() {
1212
echo " pull Git pull androdeb to update it on your host"
1313
echo ""
1414
echo " prepare Prepare the device (when running for the first time)"
15+
echo " --python2 Enable minimal python2 interpreter"
1516
echo " --tracers Enable tracing packages (perf and trace-cmd)"
1617
echo " --compilers Enable compilers on the FS (gcc and clang)"
1718
echo " --editors Enable vim, emacs and git packages"

0 commit comments

Comments
 (0)