From: Greg Ward Date: Sun, 29 Aug 1999 18:19:01 +0000 (+0000) Subject: Patch from Perry Stoll: OK for list of modules to be empty. X-Git-Tag: v1.6a1~959 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d60fcf02a7050a07067a12c7a98c8b6b1e68372;p=thirdparty%2FPython%2Fcpython.git Patch from Perry Stoll: OK for list of modules to be empty. --- diff --git a/Lib/distutils/command/build_py.py b/Lib/distutils/command/build_py.py index d956eef396b0..d75bf3f615b5 100644 --- a/Lib/distutils/command/build_py.py +++ b/Lib/distutils/command/build_py.py @@ -55,6 +55,10 @@ class BuildPy (Command): # input and output filenames and checking for missing # input files. + # it's ok not to have *any* py files, right? + if not modules: + return + # XXX we should allow for wildcards, so eg. the Distutils setup.py # file would just have to say # py_modules = ['distutils.*', 'distutils.command.*']