From 5d60fcf02a7050a07067a12c7a98c8b6b1e68372 Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Sun, 29 Aug 1999 18:19:01 +0000 Subject: Patch from Perry Stoll: OK for list of modules to be empty. --- Lib/distutils/command/build_py.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/distutils/command/build_py.py b/Lib/distutils/command/build_py.py index d956eef..d75bf3f 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.*'] -- cgit v0.12