Mercurial > p > roundup > code
annotate roundup/dist/command/build_py.py @ 4547:d9d7319afffa
Add config-option "nosy" to messages_to_author setting in [nosy] section...
...of config: This will send a message to the author only in the case where
the author is on the nosy-list (either added earlier or via the
add_author setting). Current config-options for this setting will send /
not send to author without considering the nosy list.
[[Posted on behalf of Dr. Schlatterbeck during the git conversion.]]
committer: Eric S. Raymond <esr@thyrsus.com>
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Wed, 19 Oct 2011 11:32:20 -0400 |
| parents | e233d7a66343 |
| children |
| rev | line source |
|---|---|
| 4068 | 1 # |
| 2 # Copyright (C) 2009 Stefan Seefeld | |
| 3 # All rights reserved. | |
| 4 # For license terms see the file COPYING.txt. | |
| 5 # | |
| 6 from distutils.command.build_py import build_py | |
| 7 | |
| 8 class build_py(build_py): | |
| 9 | |
| 10 def find_modules(self): | |
| 11 # Files listed in py_modules are in the toplevel directory | |
| 12 # of the source distribution. | |
| 13 modules = [] | |
| 14 for module in self.py_modules: | |
| 15 path = module.split('.') | |
| 16 package = '.'.join(path[0:-1]) | |
| 17 module_base = path[-1] | |
| 18 module_file = module_base + '.py' | |
| 19 if self.check_module(module, module_file): | |
| 20 modules.append((package, module_base, module_file)) | |
| 21 return modules | |
| 22 | |
| 23 |
