]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch from Perry Stoll: OK for list of modules to be empty.
authorGreg Ward <gward@python.net>
Sun, 29 Aug 1999 18:19:01 +0000 (18:19 +0000)
committerGreg Ward <gward@python.net>
Sun, 29 Aug 1999 18:19:01 +0000 (18:19 +0000)
Lib/distutils/command/build_py.py

index d956eef396b06e41f91807885302198b64e06a48..d75bf3f615b5a3b5a319f2858accba32d0db8dbf 100644 (file)
@@ -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.*']