TABLE OF CONTENTS


python2-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 2 packages, for use by packages which do not yet support Python 3, or for backport module packages which are not needed with Python 3. Python module packages which support both Python 2 and 3 should use python-wheel.cygclass instead.

EXAMPLE

    inherit python2-wheel
    
    NAME="python-futures"
    VERSION=3.1.1
    RELEASE=1
    CATEGORY="Python"
    SUMMARY="Backport of Python concurrent.futures to 2.7"
    DESCRIPTION="The concurrent.futures module provides a high-level interface
    for asynchronously executing callables.  This module is a backport for
    Python 2.7."
    
    ARCH=noarch

INHERITS

python2.cygclass, python-wheel.cygclass

REQUIRES

python2, python2-pip


python2_wheel_compile

[ Top ] [ python2-wheel.cygclass ] [ Compile Functions ]

SYNOPSIS

  python2_wheel_compile [OPTIONS]

DESCRIPTION

Runs the setup.py 'bdist_wheel' command, to which any arguments are passed.


python2_wheel_install

[ Top ] [ python2-wheel.cygclass ] [ Install Functions ]

SYNOPSIS

  python2_wheel_install [OPTIONS]

DESCRIPTION

Installs the previously built wheel into $D with 'pip2 install'.


src_compile (python2-wheel)

[ Top ] [ python2-wheel.cygclass ] [ Overloads ]

DEFINITION

src_compile() {
        lndirs
        cd ${B}
        python2_wheel_compile
}

src_install (python2-wheel)

[ Top ] [ python2-wheel.cygclass ] [ Overloads ]

DEFINITION

src_install() {
        cd ${B}
        python2_wheel_install
}