aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/bdist_egg.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-05-04 00:06:18 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-05-04 00:06:18 -0400
commite8dbb411b4c6e282b6848066dcbac3ced6d3a880 (patch)
treea907463f6bd7365682a3e7306b864c14f93c780e /setuptools/command/bdist_egg.py
parent3b7000ad8a3eba032d4d2654e31ae64c976cb494 (diff)
parentff75a6cbdbcde8d9e3b979c30c3d6e64a1bc5374 (diff)
downloadexternal_python_setuptools-e8dbb411b4c6e282b6848066dcbac3ced6d3a880.tar.gz
external_python_setuptools-e8dbb411b4c6e282b6848066dcbac3ced6d3a880.tar.bz2
external_python_setuptools-e8dbb411b4c6e282b6848066dcbac3ced6d3a880.zip
Merge setuptools/command/*
--HG-- branch : Setuptools-Distribute merge
Diffstat (limited to 'setuptools/command/bdist_egg.py')
-rw-r--r--setuptools/command/bdist_egg.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py
index 17fae984..c3356bb7 100644
--- a/setuptools/command/bdist_egg.py
+++ b/setuptools/command/bdist_egg.py
@@ -170,12 +170,13 @@ class bdist_egg(Command):
def run(self):
# Generate metadata first
self.run_command("egg_info")
-
# We run install_lib before install_data, because some data hacks
# pull their data path from the install_lib command.
log.info("installing library code to %s" % self.bdist_dir)
instcmd = self.get_finalized_command('install')
old_root = instcmd.root; instcmd.root = None
+ if self.distribution.has_c_libraries() and not self.skip_build:
+ self.run_command('build_clib')
cmd = self.call_command('install_lib', warn_dir=0)
instcmd.root = old_root
@@ -195,7 +196,6 @@ class bdist_egg(Command):
to_compile.extend(self.make_init_files())
if to_compile:
cmd.byte_compile(to_compile)
-
if self.distribution.data_files:
self.do_install_data()
@@ -407,7 +407,7 @@ def write_safety_flag(egg_dir, safe):
for flag,fn in safety_flags.items():
fn = os.path.join(egg_dir, fn)
if os.path.exists(fn):
- if safe is None or bool(safe)<>flag:
+ if safe is None or bool(safe)!=flag:
os.unlink(fn)
elif safe is not None and bool(safe)==flag:
f=open(fn,'wt'); f.write('\n'); f.close()