7.8. Layer python3_core

7.8.1. Overview

The python3_core layer includes a minimal (C) Python3 distribution.

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

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

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

Note

There is also a python2 wrapper (see utilities) available in this layer which is the way to go if you want to execute a python2 script from a python3 environment (for example with this layer loaded).

7.8.2. Metadata

7.8.2.1. Layer Home

/opt/metwork-mfext-0.9/opt/python3_core

7.8.2.2. Label

python3_core@mfext

7.8.2.3. Package

metwork-mfext-minimal

7.8.2.4. Dependencies

  • core@mfext

  • tcltk@mfext (optional)

7.8.2.5. System dependencies (for “generic build”)

  • libbz2.so.1()(64bit)

  • libcrypt.so.1()(64bit)

  • libfreebl3.so()(64bit)

  • libncursesw.so.5()(64bit)

  • libnsl.so.1()(64bit)

  • libutil.so.1()(64bit)

  • libpanelw.so.5()(64bit)

7.8.2.6. Conflicts

  • python2_core@mfext

7.8.2.7. Extra-environment (loaded after layer load)

PYTHON=/opt/metwork-mfext-0.9/opt/python3_core/bin/python3
METWORK_PYTHON_MODE=3
PYTHON_SHORT_VERSION={PYTHON3_SHORT_VERSION}
PYTHONUNBUFFERED=x

7.8.3. Utilities

7.8.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.8.4. Packages

Name

Version

Description

Python

3.7.3

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

18.1

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)