Gentoo Archives: gentoo-dev

From: Arfrever Frehtes Taifersar Arahesis <Arfrever@g.o>
To: Gentoo Development <gentoo-dev@l.g.o>
Cc: qa@g.o
Subject: [gentoo-dev] Patches for python.eclass and distutils.eclass
Date: Wed, 15 Dec 2010 14:33:42
1 Patch for python.eclass is divided into 3 subpatches.
2 Subpatch #1 adds/improves/updates support for Jython in many functions and fixes some minor
3 bugs in python_generate_wrapper_scripts().
4 Subpatch #2 adds python_merge_intermediate_installation_images() function. This function will
5 provide improved and more generic version of a functionality of distutils_src_install().
6 This function automatically performs the following actions:
7 - Renaming of versioned Python scripts.
8 - Conversion of shebangs in Python scripts.
9 - Merging of intermediate installation images into installation image.
10 - Generation of Python wrapper scripts.
11 Example usage:
12 src_install() {
13 installation() {
14 emake DESTDIR="${T}/images/${PYTHON_ABI}" install
15 }
16 python_execute_function installation
17 python_merge_intermediate_installation_images "${T}/images"
18 }
19 Python scripts in /usr/bin and /usr/sbin are versioned by default.
21 are used to control, which files should be versioned.
22 PYTHON_VERSIONED_EXECUTABLES is useful e.g. for dev-util/eric, which installs shell scripts.
23 Subpatch #3 renames some private arrays for consistency with other arrays.
24 E.g. _PYTHON_GLOBALLY_SUPPORTED_ABIS will contain Python ABIs generally supported by
25 python.eclass, while _PYTHON_LOCALLY_SUPPORTED_ABIS will contain Python ABIs supported by
26 current package.
28 Patch for distutils.eclass is divided into 2 subpatches.
29 Subpatch #1 ports distutils_src_install() to use python_merge_intermediate_installation_images()
30 and deprecates DISTUTILS_DISABLE_VERSIONING_OF_PYTHON_SCRIPTS variable, which is used only in
31 2 packages in the tree.
32 Subpatch #2 adds optional deprecation warnings for some cases. Deprecation warnings are
33 printed only when PYTHON_DEPRECATION_WARNINGS variable is set (e.g. in /etc/make.conf).
34 It might be useful for Gentoo developers to set this variable to avoid committing ebuilds
35 using deprecated functionality. This subpatch does NOT introduce any deprecation, because
36 the corresponding functionality has been already deprecated since 2010-08-03 (without
37 deprecation warnings).
39 I'm planning to commit these patches in 1 week.
41 --
42 Arfrever Frehtes Taifersar Arahesis


File name MIME type
python.eclass.patch text/x-patch
python.eclass.patch.1 text/x-patch
python.eclass.patch.2 text/x-patch
python.eclass.patch.3 text/x-patch
distutils.eclass.patch text/x-patch
distutils.eclass.patch.1 text/x-patch
distutils.eclass.patch.2 text/x-patch
signature.asc application/pgp-signature


Subject Author
Re: [gentoo-dev] Patches for python.eclass and distutils.eclass Ulrich Mueller <ulm@g.o>