aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorTarek Ziade <tarek@ziade.org>2010-05-06 16:50:18 +0200
committerTarek Ziade <tarek@ziade.org>2010-05-06 16:50:18 +0200
commit3a9c591f47b69048b513e5654e5d98efe3f2365a (patch)
tree06faaaea0aa7d00a972f45709bf872c60336413a /setuptools/command/easy_install.py
parentb53fad8a9e4e807564d11db3ed5a75187e3e1f6c (diff)
downloadexternal_python_setuptools-3a9c591f47b69048b513e5654e5d98efe3f2365a.tar.gz
external_python_setuptools-3a9c591f47b69048b513e5654e5d98efe3f2365a.tar.bz2
external_python_setuptools-3a9c591f47b69048b513e5654e5d98efe3f2365a.zip
respect the sys.dont_write_bytecode flag. Fixes #1470.6.11
--HG-- branch : distribute extra : rebase_source : 889c1badc92b1de14352a141865172b0a39384fa
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 7af42c65..8aab6f1e 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -12,7 +12,7 @@ __ http://packages.python.org/distribute/easy_install.html
"""
import sys, os.path, zipimport, shutil, tempfile, zipfile, re, stat, random
from glob import glob
-from setuptools import Command
+from setuptools import Command, _dont_write_bytecode
from setuptools.sandbox import run_setup
from distutils import log, dir_util
from distutils.util import convert_path, subst_vars
@@ -1149,6 +1149,10 @@ See the setuptools documentation for the "develop" command for more info.
chmod(f, mode)
def byte_compile(self, to_compile):
+ if _dont_write_bytecode:
+ self.warn('byte-compiling is disabled, skipping.')
+ return
+
from distutils.util import byte_compile
try:
# try to make the byte compile messages quieter