1 ################################################################################
3 # python2-wheel.cygclass - for building Wheels for Python 2
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/python2-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 2 packages, for
32 # use by packages which do not yet support Python 3, or for backport module
33 # packages which are not needed with Python 3. Python module packages which
34 # support both Python 2 and 3 should use python-wheel.cygclass instead.
36 # inherit python2-wheel
38 # NAME="python-futures"
42 # SUMMARY="Backport of Python concurrent.futures to 2.7"
43 # DESCRIPTION="The concurrent.futures module provides a high-level interface
44 # for asynchronously executing callables. This module is a backport for
49 # python2.cygclass, python-wheel.cygclass
51 # python2, python2-pip
54 error "python2-wheel.cyclass: python2 was sunsetted on 1 January, 2020. Please use python3 instead."
57 PYTHON_WHEEL_VERSIONS=${PYTHON2_VERSION}
60 #****C* python2-wheel.cygclass/python2_wheel_compile
62 # python2_wheel_compile [OPTIONS]
64 # Runs the setup.py 'bdist_wheel' command, to which any arguments are passed.
66 python2_wheel_compile() { python_wheel_compile "${@}" ; }
68 #****I* python2-wheel.cygclass/python2_wheel_install
70 # python2_wheel_install [OPTIONS]
72 # Installs the previously built wheel into $D with 'pip2 install'.
74 python2_wheel_install() { python_wheel_install ; }
76 #****o* python2-wheel.cygclass/src_compile (python2-wheel)
85 #****o* python2-wheel.cygclass/src_install (python2-wheel)
93 readonly -f python2_wheel_compile python2_wheel_install