Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-eselect/eselect-python/
Date: Wed, 25 Nov 2015 12:37:20
Message-Id: 1448455023.f28f2e793b1639b91e2e47ba50886bf25d0d28d6.mgorny@gentoo
1 commit: f28f2e793b1639b91e2e47ba50886bf25d0d28d6
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 25 12:35:51 2015 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 25 12:37:03 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f28f2e79
7
8 app-eselect/eselect-python: Replace python{,2,3} symlinks with files
9
10 Copy python-exec script to /usr/bin/python{,2,3} rather than symlinking
11 it because a lot of Python scripts like to readlink(sys.executable) and
12 don't expect to find python-exec in there...
13
14 ...ct-python-20151117.ebuild => eselect-python-20151117-r1.ebuild} | 7 ++++++-
15 app-eselect/eselect-python/eselect-python-99999999.ebuild | 7 ++++++-
16 2 files changed, 12 insertions(+), 2 deletions(-)
17
18 diff --git a/app-eselect/eselect-python/eselect-python-20151117.ebuild b/app-eselect/eselect-python/eselect-python-20151117-r1.ebuild
19 similarity index 89%
20 rename from app-eselect/eselect-python/eselect-python-20151117.ebuild
21 rename to app-eselect/eselect-python/eselect-python-20151117-r1.ebuild
22 index f78b25f..7fb2788 100644
23 --- a/app-eselect/eselect-python/eselect-python-20151117.ebuild
24 +++ b/app-eselect/eselect-python/eselect-python-20151117-r1.ebuild
25 @@ -35,7 +35,12 @@ src_install() {
26 emake DESTDIR="${D}" install || die
27
28 local f
29 - for f in python{,2,3}{,-config} 2to3 pydoc pyvenv; do
30 + for f in python{,2,3}; do
31 + # can't use symlinks here since random stuff
32 + # loves to do readlink on sys.executable...
33 + newbin "${EPREFIX}/usr/lib/python-exec/python-exec2" "${f}"
34 + done
35 + for f in python{,2,3}-config 2to3 pydoc pyvenv; do
36 dosym ../lib/python-exec/python-exec2 /usr/bin/"${f}"
37 done
38 }
39
40 diff --git a/app-eselect/eselect-python/eselect-python-99999999.ebuild b/app-eselect/eselect-python/eselect-python-99999999.ebuild
41 index f78b25f..7fb2788 100644
42 --- a/app-eselect/eselect-python/eselect-python-99999999.ebuild
43 +++ b/app-eselect/eselect-python/eselect-python-99999999.ebuild
44 @@ -35,7 +35,12 @@ src_install() {
45 emake DESTDIR="${D}" install || die
46
47 local f
48 - for f in python{,2,3}{,-config} 2to3 pydoc pyvenv; do
49 + for f in python{,2,3}; do
50 + # can't use symlinks here since random stuff
51 + # loves to do readlink on sys.executable...
52 + newbin "${EPREFIX}/usr/lib/python-exec/python-exec2" "${f}"
53 + done
54 + for f in python{,2,3}-config 2to3 pydoc pyvenv; do
55 dosym ../lib/python-exec/python-exec2 /usr/bin/"${f}"
56 done
57 }