1 ################################################################################
3 # python3-wheel.cygclass - for building Wheels for Python 3
5 # Part of cygport - Cygwin packaging application
6 # Copyright (C) 2006-2020 Cygport authors
7 # Provided by the Cygwin project <https://cygwin.com/>
9 # cygport is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
14 # cygport is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with cygport. If not, see <https://www.gnu.org/licenses/>.
22 ################################################################################
24 #****h* Cygclasses/python3-wheel.cygclass
26 # Wheels are the new standard for installing Python libraries and programs.
27 # The build is defined by a setup.py file in the top source directory, which
28 # controls the installation of files and the building of C Python extensions.
29 # Many such packages are hosted on the Python Package Index (PyPI).
31 # This cygclass handles the building of wheel-based Python 3 packages, for
32 # use by packages which no longer support Python 2, or for those which are
33 # primarily programs and not modules. Python module packages which support
34 # both Python 2 and 3 should use python-wheel.cygclass instead.
36 # inherit python3-wheel
42 # SUMMARY="Git command for Gerrit submissions"
43 # DESCRIPTION="git-review is a tool that helps submitting git branches to
45 # HOMEPAGE="https://opendev.org/opendev/git-review"
46 # LICENSE="Apache-2.0"
47 # SRC_URI="https://tarballs.opendev.org/openstack/git-review/${NAME}-${VERSION}.tar.gz"
53 # python3.cygclass, python-wheel.cygclass
55 # python3, python3-pip
58 PYTHON_WHEEL_VERSIONS=${PYTHON3_VERSION}
61 #****C* python3-wheel.cygclass/python3_wheel_compile
63 # python3_wheel_compile [OPTIONS]
65 # Runs the setup.py 'bdist_wheel' command, to which any arguments are passed.
67 python3_wheel_compile() { python_wheel_compile "${@}" ; }
69 #****I* python3-wheel.cygclass/python3_wheel_install
71 # python3_wheel_install [OPTIONS]
73 # Installs the previously built wheel into $D with 'pip3 install'.
75 python3_wheel_install() { python_wheel_install ; }
77 #****o* python3-wheel.cygclass/src_compile (python3-wheel)
86 #****o* python3-wheel.cygclass/src_install (python3-wheel)
94 readonly -f python3_wheel_compile python3_wheel_install