From cca060c2d83301f1aae9fc4be26612a75a1c38c3 Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Fri, 13 Jan 2006 23:52:42 +0000 Subject: 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 --- setuptools/command/install_lib.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'setuptools/command/install_lib.py') 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) + -- cgit v1.2.3