mgorny 14/07/06 11:45:20 Modified: ChangeLog python-utils-r1.eclass Log: Disable python2.6 support and clean up the related code.
Revision Changes Path 1.1311 eclass/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1311&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1311&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1310&r2=1.1311 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v retrieving revision 1.1310 retrieving revision 1.1311 diff -u -r1.1310 -r1.1311 --- ChangeLog 4 Jul 2014 13:02:21 -0000 1.1310 +++ ChangeLog 6 Jul 2014 11:45:20 -0000 1.1311 @@ -1,6 +1,9 @@ # ChangeLog for eclass directory # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1310 2014/07/04 13:02:21 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1311 2014/07/06 11:45:20 mgorny Exp $ + + 06 Jul 2014; Michał Górny <[email protected]> python-utils-r1.eclass: + Disable python2.6 support and clean up the related code. 04 Jul 2014; Michał Górny <[email protected]> multilib-build.eclass: Declare REQUIRED_USE inside MULTILIB_COMPAT conditional, reported by steev. 1.60 eclass/python-utils-r1.eclass file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/python-utils-r1.eclass?rev=1.60&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/python-utils-r1.eclass?rev=1.60&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/python-utils-r1.eclass?r1=1.59&r2=1.60 Index: python-utils-r1.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/python-utils-r1.eclass,v retrieving revision 1.59 retrieving revision 1.60 diff -u -r1.59 -r1.60 --- python-utils-r1.eclass 29 Jun 2014 14:24:22 -0000 1.59 +++ python-utils-r1.eclass 6 Jul 2014 11:45:20 -0000 1.60 @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/python-utils-r1.eclass,v 1.59 2014/06/29 14:24:22 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/python-utils-r1.eclass,v 1.60 2014/07/06 11:45:20 mgorny Exp $ # @ECLASS: python-utils-r1 # @MAINTAINER: @@ -43,7 +43,7 @@ jython2_5 jython2_7 pypy python3_2 python3_3 python3_4 - python2_6 python2_7 + python2_7 ) # @FUNCTION: _python_impl_supported @@ -66,10 +66,10 @@ # keep in sync with _PYTHON_ALL_IMPLS! # (not using that list because inline patterns shall be faster) case "${impl}" in - python2_[67]|python3_[234]|jython2_[57]) + python2_7|python3_[234]|jython2_[57]) return 0 ;; - pypy1_[89]|pypy2_0|python2_5|python3_1) + pypy1_[89]|pypy2_0|python2_[56]|python3_1) return 1 ;; pypy) @@ -98,7 +98,7 @@ # # Example value: # @CODE -# /usr/bin/python2.6 +# /usr/bin/python2.7 # @CODE # @ECLASS-VARIABLE: EPYTHON @@ -117,7 +117,7 @@ # # Example value: # @CODE -# python2.6 +# python2.7 # @CODE # @ECLASS-VARIABLE: PYTHON_SITEDIR @@ -129,7 +129,7 @@ # # Example value: # @CODE -# /usr/lib64/python2.6/site-packages +# /usr/lib64/python2.7/site-packages # @CODE # @ECLASS-VARIABLE: PYTHON_INCLUDEDIR @@ -141,7 +141,7 @@ # # Example value: # @CODE -# /usr/include/python2.6 +# /usr/include/python2.7 # @CODE # @ECLASS-VARIABLE: PYTHON_LIBPATH @@ -154,7 +154,7 @@ # # Example value: # @CODE -# /usr/lib64/libpython2.6.so +# /usr/lib64/libpython2.7.so # @CODE # @ECLASS-VARIABLE: PYTHON_CFLAGS @@ -307,10 +307,6 @@ local val case "${impl}" in - python2.5|python2.6) - # old versions support python-config only - val=$("${impl}-config" --includes) - ;; python*) # python-2.7, python-3.2, etc. val=$($(tc-getPKG_CONFIG) --cflags ${impl/n/n-}) @@ -327,10 +323,6 @@ local val case "${impl}" in - python2.5|python2.6) - # old versions support python-config only - val=$("${impl}-config" --libs) - ;; python*) # python-2.7, python-3.2, etc. val=$($(tc-getPKG_CONFIG) --libs ${impl/n/n-}) @@ -346,8 +338,6 @@ PYTHON_PKG_DEP) local d case ${impl} in - python2.6) - PYTHON_PKG_DEP='>=dev-lang/python-2.6.8-r3:2.6';; python2.7) PYTHON_PKG_DEP='>=dev-lang/python-2.7.5-r2:2.7';; python3.2) @@ -542,6 +532,7 @@ [[ ${PYTHON} ]] || python_export PYTHON # Note: python2.6 can't handle passing files to compileall... + # TODO: we do not support 2.6 any longer # default to sys.path if [[ ${#} -eq 0 ]]; then @@ -877,20 +868,11 @@ ln -s "${PYTHON}-config" "${workdir}"/bin/python-config || die # Python 2.6+. - if [[ ${EPYTHON} != python2.5 ]]; then - ln -s "${PYTHON/python/2to3-}" "${workdir}"/bin/2to3 || die - else - nonsupp+=( 2to3 ) - fi + ln -s "${PYTHON/python/2to3-}" "${workdir}"/bin/2to3 || die # Python 2.7+. - if [[ ${EPYTHON} != python2.[56] ]]; then - ln -s "${EPREFIX}"/usr/$(get_libdir)/pkgconfig/${EPYTHON/n/n-}.pc \ - "${workdir}"/pkgconfig/python.pc || die - else - # XXX? - ln -s /dev/null "${workdir}"/pkgconfig/python.pc || die - fi + ln -s "${EPREFIX}"/usr/$(get_libdir)/pkgconfig/${EPYTHON/n/n-}.pc \ + "${workdir}"/pkgconfig/python.pc || die ln -s python.pc "${workdir}"/pkgconfig/python${pyver}.pc || die else nonsupp+=( 2to3 python-config )
