1 |
mgorny 13/03/02 07:16:43 |
2 |
|
3 |
Modified: ChangeLog distutils-r1.eclass |
4 |
Log: |
5 |
Override build locations and set PYTHONPATH in in-source builds, to increase compatibility with out-of-source builds. |
6 |
|
7 |
Revision Changes Path |
8 |
1.697 eclass/ChangeLog |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.697&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.697&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.696&r2=1.697 |
13 |
|
14 |
Index: ChangeLog |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v |
17 |
retrieving revision 1.696 |
18 |
retrieving revision 1.697 |
19 |
diff -u -r1.696 -r1.697 |
20 |
--- ChangeLog 2 Mar 2013 07:13:32 -0000 1.696 |
21 |
+++ ChangeLog 2 Mar 2013 07:16:43 -0000 1.697 |
22 |
@@ -1,6 +1,10 @@ |
23 |
# ChangeLog for eclass directory |
24 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.696 2013/03/02 07:13:32 mgorny Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.697 2013/03/02 07:16:43 mgorny Exp $ |
27 |
+ |
28 |
+ 02 Mar 2013; Michał Górny <mgorny@g.o> distutils-r1.eclass: |
29 |
+ Override build locations and set PYTHONPATH in in-source builds, to increase |
30 |
+ compatibility with out-of-source builds. |
31 |
|
32 |
02 Mar 2013; Michał Górny <mgorny@g.o> distutils-r1.eclass: |
33 |
In-source builds: append "build/" subdir to the BUILD_DIR variable. It can be |
34 |
|
35 |
|
36 |
|
37 |
1.59 eclass/distutils-r1.eclass |
38 |
|
39 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/distutils-r1.eclass?rev=1.59&view=markup |
40 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/distutils-r1.eclass?rev=1.59&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/distutils-r1.eclass?r1=1.58&r2=1.59 |
42 |
|
43 |
Index: distutils-r1.eclass |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v |
46 |
retrieving revision 1.58 |
47 |
retrieving revision 1.59 |
48 |
diff -u -r1.58 -r1.59 |
49 |
--- distutils-r1.eclass 2 Mar 2013 07:13:32 -0000 1.58 |
50 |
+++ distutils-r1.eclass 2 Mar 2013 07:16:43 -0000 1.59 |
51 |
@@ -1,6 +1,6 @@ |
52 |
# Copyright 1999-2013 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.58 2013/03/02 07:13:32 mgorny Exp $ |
55 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.59 2013/03/02 07:16:43 mgorny Exp $ |
56 |
|
57 |
# @ECLASS: distutils-r1 |
58 |
# @MAINTAINER: |
59 |
@@ -228,11 +228,7 @@ |
60 |
debug-print-function ${FUNCNAME} "${@}" |
61 |
|
62 |
local add_args=() |
63 |
- if [[ ! ${DISTUTILS_IN_SOURCE_BUILD} ]]; then |
64 |
- if [[ ! ${BUILD_DIR} ]]; then |
65 |
- die 'Out-of-source build requested, yet BUILD_DIR unset.' |
66 |
- fi |
67 |
- |
68 |
+ if [[ ${BUILD_DIR} ]]; then |
69 |
# if setuptools is used, adjust egg_info path as well |
70 |
# (disabled since it causes build not to install scripts) |
71 |
# if "${PYTHON:-python}" setup.py --help egg_info &>/dev/null; then |
72 |
@@ -249,6 +245,8 @@ |
73 |
# make the ebuild writer lives easier |
74 |
--build-scripts "${BUILD_DIR}/scripts" |
75 |
) |
76 |
+ elif [[ ! ${DISTUTILS_IN_SOURCE_BUILD} ]]; then |
77 |
+ die 'Out-of-source build requested, yet BUILD_DIR unset.' |
78 |
fi |
79 |
|
80 |
set -- "${PYTHON:-python}" setup.py \ |
81 |
@@ -546,10 +544,8 @@ |
82 |
pushd "${BUILD_DIR}" >/dev/null || die |
83 |
fi |
84 |
local BUILD_DIR=${BUILD_DIR}/build |
85 |
- else |
86 |
- local PYTHONPATH="${BUILD_DIR}/lib:${PYTHONPATH}" |
87 |
- export PYTHONPATH |
88 |
fi |
89 |
+ local -x PYTHONPATH="${BUILD_DIR}/lib:${PYTHONPATH}" |
90 |
|
91 |
local TMPDIR=${T}/${EPYTHON} |