summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/install_lib.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-10-25 23:16:51 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-10-25 23:16:51 (GMT)
commitc76bceae1ab7cca8d1aabe2294c3b77bc1e8c8c8 (patch)
treeefa364ccaa988521e3a4d5cd3f23049c7c27ca08 /Lib/distutils/command/install_lib.py
parentaa9f3d3dfbc650eadea253462986ab9ae76d2080 (diff)
downloadcpython-c76bceae1ab7cca8d1aabe2294c3b77bc1e8c8c8.zip
cpython-c76bceae1ab7cca8d1aabe2294c3b77bc1e8c8c8.tar.gz
cpython-c76bceae1ab7cca8d1aabe2294c3b77bc1e8c8c8.tar.bz2
Merged revisions 75704 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r75704 | tarek.ziade | 2009-10-26 00:08:47 +0100 (Mon, 26 Oct 2009) | 17 lines Merged revisions 75669-75671 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r75669 | tarek.ziade | 2009-10-24 17:10:37 +0200 (Sat, 24 Oct 2009) | 1 line Issue #7071: byte-compilation in Distutils now looks at sys.dont_write_bytecode ........ r75670 | tarek.ziade | 2009-10-24 17:19:03 +0200 (Sat, 24 Oct 2009) | 1 line fixed finally state in distutils.test_util ........ r75671 | tarek.ziade | 2009-10-24 17:51:30 +0200 (Sat, 24 Oct 2009) | 1 line fixed warning and error message ........ ................
Diffstat (limited to 'Lib/distutils/command/install_lib.py')
-rw-r--r--Lib/distutils/command/install_lib.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/distutils/command/install_lib.py b/Lib/distutils/command/install_lib.py
index 85fb3ac..6022d30 100644
--- a/Lib/distutils/command/install_lib.py
+++ b/Lib/distutils/command/install_lib.py
@@ -6,6 +6,8 @@ Implements the Distutils 'install_lib' command
__revision__ = "$Id$"
import os
+import sys
+
from distutils.core import Command
from distutils.errors import DistutilsOptionError
@@ -115,6 +117,10 @@ class install_lib(Command):
return outfiles
def byte_compile(self, files):
+ if sys.dont_write_bytecode:
+ self.warn('byte-compiling is disabled, skipping.')
+ return
+
from distutils.util import byte_compile
# Get the "--root" directory supplied to the "install" command,