public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowitz@sourceware.org>
To: cygwin-apps-cvs@sourceware.org
Subject: [cygport - the Cygwin packaging tool] branch master, updated. 0.33.1-30-g9b2c792
Date: Thu, 23 Apr 2020 22:34:20 +0000 (GMT)	[thread overview]
Message-ID: <20200423223420.870F53957483@sourceware.org> (raw)




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/cygport.git;h=9b2c792f83e2f28c4da60a5603da08419b5f873f

commit 9b2c792f83e2f28c4da60a5603da08419b5f873f
Author: Yaakov Selkowitz <yselkowi@redhat.com>
Date:   Thu Apr 23 18:33:32 2020 -0400

    pkg_diff: ignore aminclude_static.am
    
    This file is generated by autoconf-archive macros.

https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/cygport.git;h=ad15268bb45989ac855d7f459443d1c7a5d16c95

commit ad15268bb45989ac855d7f459443d1c7a5d16c95
Author: Yaakov Selkowitz <yselkowi@redhat.com>
Date:   Thu Apr 23 18:10:20 2020 -0400

    python-wheel: update for 3.8 and obsoletion of 2.7


Diff:
---
 cygclass/python-wheel.cygclass | 41 ++++++++++++++++++++++++++++-------------
 lib/pkg_pkg.cygpart            |  2 ++
 2 files changed, 30 insertions(+), 13 deletions(-)

diff --git a/cygclass/python-wheel.cygclass b/cygclass/python-wheel.cygclass
index 402370e..e9d20ce 100644
--- a/cygclass/python-wheel.cygclass
+++ b/cygclass/python-wheel.cygclass
@@ -61,14 +61,20 @@ inherit python.org
 #  DESCRIPTION
 #  A colon-seperated list of version(s) for which this module should be built.
 #  Some aliases are also accepted:
-#  * all: all supported versions (currently: 2.7, and 3.5 through 3.8)
-#  * future: the default and upcoming versions (currently: 2.7, 3.6, 3.7)
-#  * default: the default versions (currently: 2.7, 3.6, 3.7)
-#  * 2: the default 2.x version (currently: 2.7)
-#  * 3: the default 3.x version (currently: 3.6)
+#  * all: all supported 3.y versions (currently: 3.5 through 3.8)
+#  * future: the default and upcoming 3.y versions (currently: 3.7, 3.8)
+#  * default: the default 3.y version(s) (currently: 3.7, 3.8)
+#  * 2: the default 2.x version (permanently 2.7)
+#  * 3: the default 3.x version (currently: 3.8)
 #  This variable must be defined before inheriting python-wheel.cygclass.
 #  If undefined, "default" is assumed.
 #  NOTES
+#  * Python 2.7 is no longer supported upstream, and all code should be moving
+#    to Python 3.y.  While the 2.7 packages will remain for now, they should
+#    only be used when absolutely needed.  Therefore, 2.7 has been dropped from
+#    the all/default/future sets.  If you still need to provide your module for
+#    2.7 -- and 2.7 is still supported by the module -- then set a value of
+#    e.g. PYTHON_WHEEL_VERSIONS="2:default".
 #  * It is not generally expected for wheel packages to be built with "all".
 #    This option is primarily intended for the most basic modules used to
 #    build, install, and run other modules (e.g. setuptools, wheel, pip, and
@@ -82,13 +88,22 @@ inherit python.org
 
 # when the default versions of Python change, this and the ENSUREPIP_OPTIONS
 # switches need to be updated accordingly
-case "${PYTHON_WHEEL_VERSIONS:-default}" in
-all)      PYTHON_WHEEL_VERSIONS=2.7:3.5:3.6:3.8:3.7 ;;
-future)   PYTHON_WHEEL_VERSIONS=2.7:3.6:3.7 ;;
-default)  PYTHON_WHEEL_VERSIONS=2.7:3.6:3.7 ;;
-2)        PYTHON_WHEEL_VERSIONS=2.7 ;;
-3)        PYTHON_WHEEL_VERSIONS=3.6:3.7 ;;
-esac
+_tmp_wheel_v=
+: ${PYTHON_WHEEL_VERSIONS:=default}
+for ver in ${PYTHON_WHEEL_VERSIONS//:/ }
+do
+	case "${ver}" in
+	all)		_tmp_wheel_v+=3.5:3.6:3.7:3.8: ;;
+	future)		_tmp_wheel_v+=3.7:3.8: ;;
+	default)	_tmp_wheel_v+=3.7:3.8: ;;
+	2)		_tmp_wheel_v+=2.7: ;;
+	3)		_tmp_wheel_v+=3.8: ;;
+	*)		_tmp_wheel_v+=$ver: ;;
+	esac
+done
+PYTHON_WHEEL_VERSIONS=${_tmp_wheel_v%:}
+unset _tmp_wheel_v
+
 for ver in ${PYTHON_WHEEL_VERSIONS//:/ }
 do
 	check_prog_req pip${ver} python${ver//.}-pip
@@ -180,7 +195,7 @@ python_wheel_install() {
 		# ENSUREPIP_OPTIONS=install: pipX, pipX.Y, easy_install-X.Y
 
 		case ${ver} in
-		2.7|3.6) export ENSUREPIP_OPTIONS="install" ;;
+		2.7|3.8) export ENSUREPIP_OPTIONS="install" ;;
 		*) export ENSUREPIP_OPTIONS="altinstall" ;;
 		esac
 		pip${ver} install -I dist/${whl} --root ${D} --prefix /usr --no-compile --no-deps --no-warn-script-location || error "pip${ver} install failed"
diff --git a/lib/pkg_pkg.cygpart b/lib/pkg_pkg.cygpart
index 0abc627..119d6a6 100644
--- a/lib/pkg_pkg.cygpart
+++ b/lib/pkg_pkg.cygpart
@@ -311,6 +311,8 @@ __pkg_diff() {
 		default_excludes+=" COPYING INSTALL ansi2knr.c ar-lib config-ml.in elisp-comp
 			mdate-sh mkinstalldirs py-compile symlink-tree tap-driver.sh test-driver
 			texinfo.tex ylwrap Makefile.in GNUmakefile.in makefile.in"
+		# from autoconf-archive
+		default_excludes+=" aminclude_static.am"
 	fi
 
 	if __config_equals with_libtool 1



                 reply	other threads:[~2020-04-23 22:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200423223420.870F53957483@sourceware.org \
    --to=yselkowitz@sourceware.org \
    --cc=cygwin-apps-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).