1 ################################################################################
3 # python.cygclass - compatibility wrapper for python2.cygclass
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 #****ih* Cygclasses/python.cygclass
28 # Deprecated compatibility wrapper for python2.cygclass.
33 warning "python.cygclass: deprecated compatibility wrapper for the python2 cygclass"
37 #****id* python.cygclass/PYTHON
39 # Deprecated alias for PYTHON2.
43 #****id* python.cygclass/PYTHON_VERSION
45 # Deprecated alias for PYTHON2_VERSION.
47 PYTHON_VERSION=${PYTHON2_VERSION}
49 #****id* python.cygclass/PYTHON_INCLUDEDIR
51 # Deprecated alias for PYTHON2_INCLUDEDIR.
53 PYTHON_INCLUDEDIR=${PYTHON2_INCLUDEDIR}
55 #****id* python.cygclass/PYTHON_LIB
57 # Deprecated alias for PYTHON2_LIB.
59 PYTHON_LIB=${PYTHON2_LIB}
61 #****id* python.cygclass/PYTHON_SITELIB
63 # Deprecated alias for PYTHON2_SITELIB.
65 PYTHON_SITELIB=${PYTHON2_SITELIB}
67 #****id* python.cygclass/LIBPYTHON
69 # Deprecated alias for LIBPYTHON2
71 LIBPYTHON=${LIBPYTHON2}
73 #****iI* python.cygclass/pythoninto
75 # Deprecated alias for python2into.
81 #****iI* python.cygclass/dopython
83 # Deprecated alias for dopython2.
89 #****iI* python.cygclass/python_optimize
91 # Deprecated alias for python2_optimize.
97 # obsolete: name may be misleading (*_compile() funcs usually build something)
98 python_compile() { python2_optimize ${@} ; }
100 #****iI* python.cygclass/python_fix_shebang
102 # Deprecated alias for python2_fix_shebang.
104 python_fix_shebang() {
105 python2_fix_shebang "$@"
108 readonly -f pythoninto dopython python_optimize python_compile python_fix_shebang