summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/build_py.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>1999-08-29 18:19:01 (GMT)
committerGreg Ward <gward@python.net>1999-08-29 18:19:01 (GMT)
commit5d60fcf02a7050a07067a12c7a98c8b6b1e68372 (patch)
treeb44babe8e598c91092b852cd84e1d96f03dfef3e /Lib/distutils/command/build_py.py
parent2f1b5bb905c2a8a1462833635e6d912a36eae1a9 (diff)
downloadcpython-5d60fcf02a7050a07067a12c7a98c8b6b1e68372.zip
cpython-5d60fcf02a7050a07067a12c7a98c8b6b1e68372.tar.gz
cpython-5d60fcf02a7050a07067a12c7a98c8b6b1e68372.tar.bz2
Patch from Perry Stoll: OK for list of modules to be empty.
Diffstat (limited to 'Lib/distutils/command/build_py.py')
-rw-r--r--Lib/distutils/command/build_py.py4
1 files changed, 4 insertions, 0 deletions
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.*']