TABLE OF CONTENTS
python-wheel.cygclass
[ Top ] [ Cygclasses ] [ Cygclasses ]
DESCRIPTION
Wheels are the new standard for installing Python libraries and programs. The build is defined by a setup.py file in the top source directory, which controls the installation of files and the building of C Python extensions. Many such packages are hosted on the Python Package Index (PyPI).
This cygclass handles the building of wheel-based Python packages for both Python 2 and 3 simultaneously.
EXAMPLE
inherit python-wheel NAME="python-six" VERSION=1.10.0 RELEASE=1 CATEGORY="Python" SUMMARY="Python 2 and 3 compatibility library" DESCRIPTION="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." ARCH=noarch
INHERITS
python2-wheel.cygclass, python3-wheel.cygclass
REQUIRES
python2, python2-pip, python3, python3-pip
PKG_NAMES (python-wheel)
[ Top ] [ python-wheel.cygclass ] [ Overloads ]
DESCRIPTION
For a NAME of python-foo, the following two binary packages are created automatically:
- python2-foo, containing PYTHON2_SITELIB
- python3-foo, containing PYTHON3_SITELIB
Each package also includes its own independent copy of the automatically installed documentation (COPYING, README, etc.). For those packages which install scripts into /usr/bin, these should be added to python2_foo_CONTENTS and/or python3_foo_CONTENTS.
python_wheel_compile
[ Top ] [ python-wheel.cygclass ] [ Compile Functions ]
SYNOPSIS
python_wheel_compile [OPTIONS]
DESCRIPTION
Runs the setup.py 'bdist_wheel' command, to which any arguments are passed.
python_wheel_install
[ Top ] [ python-wheel.cygclass ] [ Install Functions ]
SYNOPSIS
python_wheel_install [OPTIONS]
DESCRIPTION
Installs the previously built wheel into $D with 'pip[23] install'.
src_compile (python-wheel)
[ Top ] [ python-wheel.cygclass ] [ Overloads ]
DEFINITION
src_compile() { lndirs cd ${B} python_wheel_compile }
src_install (python-wheel)
[ Top ] [ python-wheel.cygclass ] [ Overloads ]
DEFINITION
src_install() { cd ${B} python_wheel_install }