python3-wheel.cygclass

Cygport Reference Manual

### TABLE OF CONTENTS

- python3-wheel.cygclass

- PYTHON_WHEEL_VERSIONS
- python3_wheel_compile
- python3_wheel_install
- src_compile (python3-wheel)
- src_install (python3-wheel)

## python3-wheel.cygclass

[ Top ] [ Cygclasses ] [ Cygclasses ]

DESCRIPTION

Wheels are the standard for installing Python libraries and programs. The build is defined by a PEP 518 conformant source tree, or by a top-level setup.cfg or setup.py file in the 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 a single python version, for use by packages which which are primarily programs and not modules.

Python module packages which support multiple Python versions should use the 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

## PYTHON_WHEEL_VERSIONS

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

DEFINITION

    PYTHON_WHEEL_VERSIONS=${PYTHON3_VERSION}

## 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
    }