7.12. Layer python2_core

7.12.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 python3 wrapper (see utilities) available in this layer which is the way to go if you want to execute a python3 script from a python2 environment (for example with this layer loaded).

7.12.2. Metadata

7.12.2.1. Layer Home

/opt/metwork-mfext-0.9/opt/python2_core

7.12.2.2. Label

python2_core@mfext

7.12.2.3. Package

metwork-mfext-layer-python2_core

7.12.2.4. Dependencies

  • core@mfext

  • tcltk@mfext (optional)

7.12.2.5. Conflicts

  • python3_core@mfext

7.12.2.6. Extra-environment (loaded after layer load)

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

7.12.3. Utilities

7.12.3.1. python3

usage: python3 [PYTHON_ARGS]
  => launch a python3 command inside a python3 env (even if we are currently in a python2 env)

7.12.4. Packages

Name

Version

Description

Python

2.7.16

Python is an interpreted, object-oriented, high-level programming language.

appdirs

1.4.3

A small Python module for determining appropriate platform-specific dirs.

certifi

2019.3.9

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

packaging

19.0

Core utilities for Python packages

pip

9.0.3

The PyPA recommended tool for installing Python packages.

pyparsing

2.4.0

A Python Parsing Module

setuptools

41.0.1

Setuptools is a package development process library designed to facilitate download, build, install, upgrade, and uninstall Python packages

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.

virtualenv

16.6.0

Virtual Python Environment builder

wheel

0.33.4

A built-package format for Python.

(10 components)