1 |
mgorny 13/12/02 13:14:09 |
2 |
|
3 |
Modified: ChangeLog distutils-r1.eclass |
4 |
Log: |
5 |
Override bdist_egg->build_dir via pydistutils.cfg rather than extra command. Fixes bug #489842. |
6 |
|
7 |
Revision Changes Path |
8 |
1.1077 eclass/ChangeLog |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1077&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1077&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1076&r2=1.1077 |
13 |
|
14 |
Index: ChangeLog |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v |
17 |
retrieving revision 1.1076 |
18 |
retrieving revision 1.1077 |
19 |
diff -u -r1.1076 -r1.1077 |
20 |
--- ChangeLog 2 Dec 2013 09:42:38 -0000 1.1076 |
21 |
+++ ChangeLog 2 Dec 2013 13:14:09 -0000 1.1077 |
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.1076 2013/12/02 09:42:38 pinkbyte Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1077 2013/12/02 13:14:09 mgorny Exp $ |
27 |
+ |
28 |
+ 02 Dec 2013; Michał Górny <mgorny@g.o> distutils-r1.eclass: |
29 |
+ Override bdist_egg->build_dir via pydistutils.cfg rather than extra command. |
30 |
+ Fixes bug #489842. |
31 |
|
32 |
02 Dec 2013; Sergey Popov <pinkbyte@g.o> +qmake-utils.eclass: |
33 |
Add qmake-utils eclass from Qt overlay |
34 |
|
35 |
|
36 |
|
37 |
1.92 eclass/distutils-r1.eclass |
38 |
|
39 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/distutils-r1.eclass?rev=1.92&view=markup |
40 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/distutils-r1.eclass?rev=1.92&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/distutils-r1.eclass?r1=1.91&r2=1.92 |
42 |
|
43 |
Index: distutils-r1.eclass |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v |
46 |
retrieving revision 1.91 |
47 |
retrieving revision 1.92 |
48 |
diff -u -r1.91 -r1.92 |
49 |
--- distutils-r1.eclass 11 Nov 2013 15:58:40 -0000 1.91 |
50 |
+++ distutils-r1.eclass 2 Dec 2013 13:14:09 -0000 1.92 |
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.91 2013/11/11 15:58:40 mgorny Exp $ |
55 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.92 2013/12/02 13:14:09 mgorny Exp $ |
56 |
|
57 |
# @ECLASS: distutils-r1 |
58 |
# @MAINTAINER: |
59 |
@@ -249,10 +249,8 @@ |
60 |
# 3) non-root 'install' complains about PYTHONPATH and missing dirs, |
61 |
# so we need to set it properly and mkdir them, |
62 |
# 4) it runs a bunch of commands which write random files to cwd, |
63 |
- # in order to avoid that, we need to run them ourselves to pass |
64 |
- # alternate build paths, |
65 |
- # 5) 'install' needs to go before 'bdist_egg' or the latter would |
66 |
- # re-set install paths. |
67 |
+ # in order to avoid that, we add the necessary path overrides |
68 |
+ # in _distutils-r1_create_setup_cfg. |
69 |
|
70 |
TEST_DIR=${BUILD_DIR}/test |
71 |
local bindir=${TEST_DIR}/scripts |
72 |
@@ -266,12 +264,6 @@ |
73 |
--install-scripts="${bindir}" |
74 |
) |
75 |
|
76 |
- if "${PYTHON:-python}" setup.py --help bdist_egg &>/dev/null; then |
77 |
- add_args+=( |
78 |
- bdist_egg --dist-dir="${TEST_DIR}" |
79 |
- ) |
80 |
- fi |
81 |
- |
82 |
mkdir -p "${libdir}" || die |
83 |
esetup.py "${add_args[@]}" "${@}" |
84 |
} |
85 |
@@ -367,6 +359,11 @@ |
86 |
|
87 |
[egg_info] |
88 |
egg-base = ${BUILD_DIR} |
89 |
+ |
90 |
+ # this is needed by distutils_install_for_testing since |
91 |
+ # setuptools like to create .egg files for install --home. |
92 |
+ [bdist_egg] |
93 |
+ dist-dir = ${BUILD_DIR}/dist |
94 |
_EOF_ |
95 |
} |