diff --git a/Lib/distutils/command/build_py.py b/Lib/distutils/command/build_py.py index ea92c2be0f2..ebe30e81066 100644 --- a/Lib/distutils/command/build_py.py +++ b/Lib/distutils/command/build_py.py @@ -307,7 +307,7 @@ def build_module (self, module, module_file, package): outfile = self.get_module_outfile (self.build_lib, package, module) dir = os.path.dirname (outfile) self.mkpath (dir) - self.copy_file (module_file, outfile, preserve_mode=0) + return self.copy_file (module_file, outfile, preserve_mode=0) def build_modules (self):