10. Layer python2_core

10.1. Overview

The python2_core layer includes a minimal (C) Python2 distribution.

Some additional packages are installed to be able to use pip and virtualenv commands.

Other packages are put in the (main) python2 layer.

This layer is not loaded by default and conflicts with python3_core layer. So you have to use layer_wrapper or bash layer_load before using included packages.

Note

There is also a python2 wrapper available in the root layer which is the way to go if you want to execute a python2 script without any question about currently loaded layers.

10.2. Metadata

10.2.1. Layer Home

/opt/metwork-mfext-0.7/opt/python2_core

10.2.2. Label

python2_core@mfext

10.2.3. Dependencies

10.2.4. Conflicts

10.2.5. Extra-environment (loaded after layer load)

PYTHON=/opt/metwork-mfext-0.7/opt/python2_core/bin/python2
METWORK_PYTHON_MODE=2
PYTHON_SHORT_VERSION={PYTHON2_SHORT_VERSION}
PYTHONUNBUFFERED=x

10.3. Utilities

10.3.1. download_compile_requirements

usage: download_compile_requirements /path/to/requirements.txt

10.3.2. freeze_requirements

usage: freeze_requirements /path/to/requirements.txt

10.3.3. install_requirements

usage: install_requirements /prefix/path /path/to/requirements.txt [INDEX_DIR]

10.4. Packages

Name Version Description Home Page  
Python 2.7.15 Python is an interpreted, object-oriented, high-level programming language. http://python.org/
appdirs 1.4.3 A small Python module for determining appropriate platform-specific dirs. http://github.com/ActiveState/appdirs
certifi 2018.10.15 Python package for providing Mozilla s CA Bundle (patched for centos) https://certifi.io
packaging 16.8 Core utilities for Python packages https://github.com/pypa/packaging
pip 9.0.1 The PyPA recommended tool for installing Python packages. https://pip.pypa.io/
pyparsing 2.2.0 A Python Parsing Module http://pyparsing.wikispaces.com/
setuptools 38.2.4 Setuptools is a package development process library designed to facilitate download, build, install, upgrade, and uninstall Python packages https://pypi.python.org/pypi/setuptools
six 1.11.0 Six is a Python 2 and 3 compatibility library. It provides utility functions for smoothing over the differences between the Python versions with the goal of writing Python code that is compatible on both Python versions. https://pypi.python.org/pypi/six/
virtualenv 15.1.0 Virtual Python Environment builder https://virtualenv.pypa.io/
wheel 0.30.0 A built-package format for Python. https://github.com/pypa/wheel

(10 packages)