Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: python@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 7/7] python-utils-r1.eclass: Reuse PYTHON_CONFIG in python_wrapper_setup()
Date: Sun, 08 Nov 2015 09:38:01
Message-Id: 1446975311-19708-8-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCHES] python-utils-r1.eclass: Getter cleanup & ABIFLAGS preparation by "Michał Górny"
1 ---
2 eclass/python-utils-r1.eclass | 6 +++---
3 1 file changed, 3 insertions(+), 3 deletions(-)
4
5 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
6 index 68926ab..33cee1b 100644
7 --- a/eclass/python-utils-r1.eclass
8 +++ b/eclass/python-utils-r1.eclass
9 @@ -877,8 +877,8 @@ python_wrapper_setup() {
10 rm -f "${workdir}"/bin/2to3 || die
11 rm -f "${workdir}"/pkgconfig/python{,2,3}.pc || die
12
13 - local EPYTHON PYTHON
14 - python_export "${impl}" EPYTHON PYTHON
15 + local EPYTHON PYTHON PYTHON_CONFIG
16 + python_export "${impl}" EPYTHON PYTHON PYTHON_CONFIG
17
18 local pyver pyother
19 if python_is_python3; then
20 @@ -906,7 +906,7 @@ python_wrapper_setup() {
21 if [[ ${EPYTHON} == python* ]]; then
22 cat > "${workdir}/bin/python-config" <<-_EOF_
23 #!/bin/sh
24 - exec "${PYTHON}-config" "\${@}"
25 + exec "${PYTHON_CONFIG}" "\${@}"
26 _EOF_
27 cp "${workdir}/bin/python-config" \
28 "${workdir}/bin/python${pyver}-config" || die
29 --
30 2.6.3