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
1 The following functions (already banned in EAPI >=3) have been deprecated
2 in EAPI <=2:
3 - python_version()
4 - python_mod_exists()
5 - python_tkinter_exists()
6 - distutils_python_version()
7 - distutils_python_tkinter()
8
9 It is currently planned that these functions will be banned in EAPI <=2
10 on 2010-07-01, but this date may be delayed.
11
12 python_version() and distutils_python_version() functions set python and
13 PYVER* variables. Calls to python_version() and distutils_python_version()
14 should be removed. Example replacements for deprecated variables:
15 "${python}" => "$(PYTHON)"
16 "/usr/include/python${PYVER}" => "$(python_get_includedir)"
17 "/usr/$(get_libdir)/python${PYVER}" => "$(python_get_libdir)"
18 "/usr/$(get_libdir)/python${PYVER}/site-packages" => "$(python_get_sitedir)"
19 "/usr/$(get_libdir)/libpython${PYVER}.so" => "$(python_get_library)"
20 "-lpython${PYVER}" => "$(python_get_library -l)"
21 "${PYVER}" => "$(python_get_version)"
22 "${PYVER_MAJOR}" => "$(python_get_version --major)"
23
24 You can see documentation [1] for more information.
25
26 Please fix your ebuilds not to use deprecated functions and variables.
27
28 [1] http://www.gentoo.org/proj/en/Python/developersguide.xml
29 --
30 Arfrever Frehtes Taifersar Arahesis

Attachments

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