From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NmWlH-00022n-PL for garchives@archives.gentoo.org; Tue, 02 Mar 2010 18:24:04 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 27B4EE0DCD; Tue, 2 Mar 2010 18:24:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 334B1E0DBE for ; Tue, 2 Mar 2010 18:23:51 +0000 (UTC) Received: from afta-gentoo.localnet (bios15.biol.us.edu.pl [155.158.245.185]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id A0C691B4003 for ; Tue, 2 Mar 2010 18:23:50 +0000 (UTC) From: Arfrever Frehtes Taifersar Arahesis To: Gentoo Development Subject: [gentoo-dev] Deprecation of python_version(), python_mod_exists(), python_tkinter_exists(), distutils_python_version() and distutils_python_tkinter() in EAPI <=2 Date: Tue, 2 Mar 2010 19:27:17 +0100 User-Agent: KMail/1.13.0 (Linux/2.6.32-tuxonice-r5-AFTA; KDE/4.4.0; x86_64; ; ) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2935594.X96AqRA3A7"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201003021927.18379.Arfrever@gentoo.org> X-Archives-Salt: 59f1525c-9f7a-4efe-8ef1-c93e7d3908eb X-Archives-Hash: 7ad37800b8fa3041662068f70083cb56 --nextPart2935594.X96AqRA3A7 Content-Type: multipart/mixed; boundary="Boundary-01=_FiVjLbNHulvMUtJ" Content-Transfer-Encoding: 7bit --Boundary-01=_FiVjLbNHulvMUtJ Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Members of Gentoo Python Project have agreed to deprecate the following fun= ctions in EAPI <=3D2: - python_version() - python_mod_exists() - python_tkinter_exists() - distutils_python_version() - distutils_python_tkinter() These functions are already banned in EAPI >=3D3. 1. In this week, these functions will start printing deprecation warnings i= n older EAPIs. 2. On 2010-07-01, these functions will start calling die(). (If any ebuilds in gentoo-x86 still call any of these functions on 2010-= 07-01, then addition of calls to die() will be delayed.) 3. On 2011-01-01, these functions will be removed. I will also send the announcement to gentoo-dev-announce mailing list to en= sure that developers not subscribed to gentoo-dev mailing list will notice the d= eprecation. The attached patch shows text of deprecation warnings. =2D-=20 Arfrever Frehtes Taifersar Arahesis --Boundary-01=_FiVjLbNHulvMUtJ Content-Type: text/x-patch; charset="UTF-8"; name="deprecation_warnings.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="deprecation_warnings.patch" =2D-- python.eclass +++ python.eclass @@ -1980,6 +1980,15 @@ die "${FUNCNAME}() cannot be used in this EAPI" fi =20 + _python_set_color_variables + + if [[ "${FUNCNAME[1]}" !=3D "distutils_python_version" ]]; then + ewarn + ewarn "${_RED}Deprecation Warning: ${FUNCNAME}() is deprecated and will = be banned on 2010-07-01.${_NORMAL}" + ewarn "${_RED}Use PYTHON() instead of python variable. Use python_get_*(= ) instead of PYVER* variables.${_NORMAL}" + ewarn + fi + [[ -n "${PYVER}" ]] && return 0 local tmpstr python=3D"${python:-${EPREFIX}/usr/bin/python}" @@ -2011,6 +2020,13 @@ die "${FUNCNAME}() cannot be used in this EAPI" fi =20 + _python_set_color_variables + + ewarn + ewarn "${_RED}Deprecation Warning: ${FUNCNAME}() is deprecated and will b= e banned on 2010-07-01.${_NORMAL}" + ewarn "${_RED}Use USE dependencies and/or has_version() instead of ${FUNC= NAME}().${_NORMAL}" + ewarn + if [[ "$#" -ne 1 ]]; then die "${FUNCNAME}() requires 1 argument" fi @@ -2027,6 +2043,15 @@ die "${FUNCNAME}() cannot be used in this EAPI" fi =20 + _python_set_color_variables + + if [[ "${FUNCNAME[1]}" !=3D "distutils_python_tkinter" ]]; then + ewarn + ewarn "${_RED}Deprecation Warning: ${FUNCNAME}() is deprecated and will = be banned on 2010-07-01.${_NORMAL}" + ewarn "${_RED}Use PYTHON_USE_WITH=3D\"xml\" and python_pkg_setup() inste= ad of ${FUNCNAME}().${_NORMAL}" + ewarn + fi + if ! "$(PYTHON ${PYTHON_ABI})" -c "from sys import version_info if version_info[0] =3D=3D 3: import tkinter =2D-- distutils.eclass +++ distutils.eclass @@ -382,6 +382,13 @@ die "${FUNCNAME}() cannot be used in this EAPI" fi =20 + _python_set_color_variables + + ewarn + ewarn "${_RED}Deprecation Warning: ${FUNCNAME}() is deprecated and will b= e banned on 2010-07-01.${_NORMAL}" + ewarn "${_RED}Use PYTHON() instead of python variable. Use python_get_*()= instead of PYVER* variables.${_NORMAL}" + ewarn + python_version } =20 @@ -394,5 +401,12 @@ die "${FUNCNAME}() cannot be used in this EAPI" fi =20 + _python_set_color_variables + + ewarn + ewarn "${_RED}Deprecation Warning: ${FUNCNAME}() is deprecated and will b= e banned on 2010-07-01.${_NORMAL}" + ewarn "${_RED}Use PYTHON_USE_WITH=3D\"xml\" and python_pkg_setup() instea= d of ${FUNCNAME}().${_NORMAL}" + ewarn + python_tkinter_exists } --Boundary-01=_FiVjLbNHulvMUtJ-- --nextPart2935594.X96AqRA3A7 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iQIcBAABAgAGBQJLjViFAAoJEFtpjAED8H0YyxsQAM3wFyglrc9uzRXFsM7P9eSR U7C8cZeFMD3wMa32u9J9/1VWwaM88p3CMyvOMhrxH/H5Uci2qYWbidFsfetqM7oO RN8KKg3BlmYthu8UltCiXYKDtq6j4gsxwnqqVDh6vK618hwaOzYqUKtahhc/jHFr sw/80owiXlT0GJxz6KpgLInBPLCm+DCFB/u5UsV80T6wnSvhA1DxNEBGQ/QcfRLd QlhJXIszIIbGH3mHwqHmr6I75RuGJLOfIDYV2oqk8rHo2/4lQS6EbBe3ST2JBO2o +lwNL3NEhvJGQ2pT5hbq2rc9G+Q+lbrF4kzkz6dhsQfQ+cWFGPAMD50ZeViF2pL3 HEcHXCOReXen3NHSGAbBZNwc1LJ6tcqrOHnrIg+VaLpID46ZcpobWpZTaf8NHHrP AsW8CpuZ6xhPrHYGAV4ujdVVTFiALab8ni1VOTMJR0V9NyLbjdb2LDl1wwaVbhV1 0C+Mg6GD95+tRgOmniqtE6iu8Bxgg/CbEJmPNL46xJyl/jmX4IJKmKa2JXvmU/bY cnUzKBUtdx9CCSmGFCkYziPFfz8EMgeFbgpII++XMDsC13hC3+HpXALoLqoFZQmp YCmZYGcdTFJTnbps51WGRh7A9cMfatDO+r9kr3zm7zNPATl8/n0I+2Nc6TatOMI2 Tn2CHIwXTqeIPjuQ7LZH =Yctj -----END PGP SIGNATURE----- --nextPart2935594.X96AqRA3A7--