1 |
hawking 08/10/27 12:23:50 |
2 |
|
3 |
Modified: python.eclass |
4 |
Log: |
5 |
Don't call python_version in python_{en,dis}able_pyc because they may be called in global scope. |
6 |
|
7 |
Revision Changes Path |
8 |
1.53 eclass/python.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/python.eclass?rev=1.53&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/python.eclass?rev=1.53&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/python.eclass?r1=1.52&r2=1.53 |
13 |
|
14 |
Index: python.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/python.eclass,v |
17 |
retrieving revision 1.52 |
18 |
retrieving revision 1.53 |
19 |
diff -u -r1.52 -r1.53 |
20 |
--- python.eclass 27 Oct 2008 00:17:28 -0000 1.52 |
21 |
+++ python.eclass 27 Oct 2008 12:23:50 -0000 1.53 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2008 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.52 2008/10/27 00:17:28 hawking Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.53 2008/10/27 12:23:50 hawking Exp $ |
27 |
|
28 |
# @ECLASS: python.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -68,12 +68,8 @@ |
31 |
# note: supported by >=dev-lang/python-2.2.3-r3 only. |
32 |
# |
33 |
python_disable_pyc() { |
34 |
- python_version |
35 |
- if [[ ${PYVER/./,} -ge 2,6 ]]; then |
36 |
- export PYTHONDONTWRITEBYTECODE=1 |
37 |
- else |
38 |
- export PYTHON_DONTCOMPILE=1 |
39 |
- fi |
40 |
+ export PYTHONDONTWRITEBYTECODE=1 # For 2.6 and above |
41 |
+ export PYTHON_DONTCOMPILE=1 # For 2.5 and below |
42 |
} |
43 |
|
44 |
# @FUNCTION: python_enable_pyc |
45 |
@@ -81,12 +77,8 @@ |
46 |
# Tells python to automatically recompile modules to .pyc/.pyo if the |
47 |
# timestamps/version stamps change |
48 |
python_enable_pyc() { |
49 |
- python_version |
50 |
- if [[ ${PYVER/./,} -ge 2,6 ]]; then |
51 |
- unset PYTHONDONTWRITEBYTECODE |
52 |
- else |
53 |
- unset PYTHON_DONTCOMPILE |
54 |
- fi |
55 |
+ unset PYTHONDONTWRITEBYTECODE |
56 |
+ unset PYTHON_DONTCOMPILE |
57 |
} |
58 |
|
59 |
python_disable_pyc |