Gentoo Archives: gentoo-dev-announce

From: Arfrever Frehtes Taifersar Arahesis <Arfrever@g.o>
To: Gentoo Development Announcements <gentoo-dev-announce@l.g.o>
Subject: [gentoo-dev-announce] Deprecation of python_version(), python_mod_exists(), python_tkinter_exists(), distutils_python_version() and distutils_python_tkinter() in EAPI <=2
Date: Fri, 05 Mar 2010 23:21:16
Message-Id: 201003051939.26661.Arfrever@gentoo.org
The following functions (already banned in EAPI >=3) have been deprecated
in EAPI <=2:
  - python_version()
  - python_mod_exists()
  - python_tkinter_exists()
  - distutils_python_version()
  - distutils_python_tkinter()

It is currently planned that these functions will be banned in EAPI <=2
on 2010-07-01, but this date may be delayed.

python_version() and distutils_python_version() functions set python and
PYVER* variables. Calls to python_version() and distutils_python_version()
should be removed. Example replacements for deprecated variables:
  "${python}"                                       => "$(PYTHON)"
  "/usr/include/python${PYVER}"                     => "$(python_get_includedir)"
  "/usr/$(get_libdir)/python${PYVER}"               => "$(python_get_libdir)"
  "/usr/$(get_libdir)/python${PYVER}/site-packages" => "$(python_get_sitedir)"
  "/usr/$(get_libdir)/libpython${PYVER}.so"         => "$(python_get_library)"
  "-lpython${PYVER}"                                => "$(python_get_library -l)"
  "${PYVER}"                                        => "$(python_get_version)"
  "${PYVER_MAJOR}"                                  => "$(python_get_version --major)"

You can see documentation [1] for more information.

Please fix your ebuilds not to use deprecated functions and variables.

[1] http://www.gentoo.org/proj/en/Python/developersguide.xml
-- 
Arfrever Frehtes Taifersar Arahesis

Attachments

File name MIME type
signature.asc application/pgp-signature