9. Layer python2_core

9.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.

9.2. Metadata

9.2.1. Layer Home

/opt/metwork-mfext-0.8/opt/python2_core

9.2.2. Label

python2_core@mfext

9.2.3. Dependencies

9.2.4. Conflicts

9.2.5. Extra-environment (loaded after layer load)

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

9.3. Utilities

9.3.1. download_compile_requirements

usage: download_compile_requirements /path/to/requirements.txt

9.3.2. freeze_requirements

usage: freeze_requirements /path/to/requirements.txt

9.3.3. install_requirements

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

9.4. Packages

Name

Version

Description

Home Page

Python

2.7.16

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

2019.3.9

Python package for providing Mozilla s CA Bundle (patched for centos)

https://certifi.io

packaging

19.0

Core utilities for Python packages

https://github.com/pypa/packaging

pip

9.0.3

The PyPA recommended tool for installing Python packages.

https://pip.pypa.io/

pyparsing

2.4.0

A Python Parsing Module

http://pyparsing.wikispaces.com/

setuptools

41.0.1

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.12.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

16.6.0

Virtual Python Environment builder

https://virtualenv.pypa.io/

wheel

0.33.4

A built-package format for Python.

https://github.com/pypa/wheel

(10 packages)