Skip to content
This repository was archived by the owner on May 6, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions python-install/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
==============
python-install
==============

Install Python of specific version (default 2.7.13)

Usage::
export ELEMENTS_PATH=$(pwd)
DIB_PYTHON_INSTALL_VERSION=2.7.13 disk-image-create ubuntu vm python-install

1 change: 1 addition & 0 deletions python-install/element-deps
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-installs
21 changes: 21 additions & 0 deletions python-install/install.d/30-python-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail

# Install specified version of Python from source code

PYTHON_INSTALL=Python-${DIB_PYTHON_INSTALL_VERSION:="2.7.13"}

cd /usr/local/src
wget https://www.python.org/ftp/python/${DIB_PYTHON_INSTALL_VERSION}/${PYTHON_INSTALL}.tgz
tar xfz ${PYTHON_INSTALL}.tgz
cd ${PYTHON_INSTALL}
./configure
make
make install
python --version

34 changes: 34 additions & 0 deletions python-install/package-installs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# package list from
# http://mbless.de/blog/2016/01/09/upgrade-to-python-2711-on-ubuntu-1404-lts.html
autotools-dev:
blt-dev:
bzip2:
dpkg-dev:
g++-multilib:
gcc-multilib:
libbluetooth-dev:
libbz2-dev:
libexpat1-dev:
libffi-dev:
libffi6:
libffi6-dbg:
libgdbm-dev:
libgpm2:
libncursesw5-dev:
libreadline-dev:
libsqlite3-dev:
libssl-dev:
libtinfo-dev:
mime-support:
net-tools:
netbase:
python-crypto:
python-mox3:
python-pil:
python-ply:
quilt:
tk-dev:
zlib1g-dev:
# extra package required by centos7
gcc:
wget: