Gentoo Logo
Gentoo Spaceship

Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev-announce
Lists: gentoo-dev-announce: < Prev By Thread Next > < Prev By Date Next >
To: Gentoo Development Announcements <gentoo-dev-announce@g.o>
From: Arfrever Frehtes Taifersar Arahesis <Arfrever@g.o>
Subject: Deprecation of python_version(), python_mod_exists(), python_tkinter_exists(), distutils_python_version() and distutils_python_tkinter() in EAPI <=2
Date: Fri, 5 Mar 2010 19:38:58 +0100
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.

Arfrever Frehtes Taifersar Arahesis
signature.asc (This is a digitally signed message part.)
Lists: gentoo-dev-announce: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Lastrite: gnu-smalltalk
Next by thread:
[Last Rites] net-p2p/pysoulseek
Previous by date:
Lastrite: gnu-smalltalk
Next by date:
[Last Rites] net-p2p/pysoulseek

Updated Jul 14, 2012

Summary: Archive of the gentoo-dev-announce mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.