diff options
author | PJ Eby <distutils-sig@python.org> | 2006-01-13 23:52:42 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2006-01-13 23:52:42 +0000 |
commit | cca060c2d83301f1aae9fc4be26612a75a1c38c3 (patch) | |
tree | 5c1ef7ecd3e71819d75f16cde77b3ac7a859a3bf /setuptools/command/install_lib.py | |
parent | 40c0f5e609fb3e074be524da077fc4c85c282a05 (diff) | |
download | python-setuptools-git-cca060c2d83301f1aae9fc4be26612a75a1c38c3.tar.gz |
Ensure installed stubs get compiled, even if there are no "pure" modules
present. Also, don't bother compiling the stub prior to installation.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042037
Diffstat (limited to 'setuptools/command/install_lib.py')
-rw-r--r-- | setuptools/command/install_lib.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/setuptools/command/install_lib.py b/setuptools/command/install_lib.py index 63e2468c..75ff54b1 100644 --- a/setuptools/command/install_lib.py +++ b/setuptools/command/install_lib.py @@ -14,3 +14,12 @@ class install_lib(_install_lib): bytecode_files.append(py_file + "o") return bytecode_files + + + def run(self): + self.build() + outfiles = self.install() + if outfiles is not None: + # always compile, in case we have any extension stubs to deal with + self.byte_compile(outfiles) + |