TABLE OF CONTENTS


python3-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 3 packages, for use by packages which no longer support Python 2, or for those which are primarily programs and not modules. Python module packages which support both Python 2 and 3 should use python-wheel.cygclass instead.

EXAMPLE

    inherit python3-wheel
    
    NAME="git-review"
    VERSION=1.25.0
    RELEASE=1
    CATEGORY="Devel"
    SUMMARY="Git command for Gerrit submissions"
    DESCRIPTION="git-review is a tool that helps submitting git branches to
    Gerrit for review."
    HOMEPAGE="https://opendev.org/opendev/git-review"
    LICENSE="Apache-2.0"
    SRC_URI="https://tarballs.opendev.org/openstack/git-review/${NAME}-${VERSION}.tar.gz"
    
    ARCH=noarch
    
    REQUIRES="git"

INHERITS

python3.cygclass, python-wheel.cygclass

REQUIRES

python3, python3-pip


python3_wheel_compile

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

SYNOPSIS

  python3_wheel_compile [OPTIONS]

DESCRIPTION

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


python3_wheel_install

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

SYNOPSIS

  python3_wheel_install [OPTIONS]

DESCRIPTION

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


src_compile (python3-wheel)

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

DEFINITION

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

src_install (python3-wheel)

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

DEFINITION

src_install() {
        cd ${B}
        python3_wheel_install
}