comparison setup.py @ 4763:57b9f2848cf8

Move demo.py to roundup.demo where it appears when installed. This removes part of distutils building magic and brings Roundup sources closer to the state how it works when installed. Previously I've introduced a bug where I've made "demo" tracker home configurable and by default created in the dir the demo.py script, which became directory of roundup.demo module after installation. This will be fixed in the next commit. Simplicity matters.
author anatoly techtonik <techtonik@gmail.com>
date Thu, 21 Feb 2013 18:57:05 +0300
parents d2f58accb405
children f61bd780892e
comparison
equal deleted inserted replaced
4762:a58e971be722 4763:57b9f2848cf8
19 # 19 #
20 20
21 21
22 from roundup.dist.command.build_doc import build_doc 22 from roundup.dist.command.build_doc import build_doc
23 from roundup.dist.command.build_scripts import build_scripts 23 from roundup.dist.command.build_scripts import build_scripts
24 from roundup.dist.command.build_py import build_py
25 from roundup.dist.command.build import build, list_message_files 24 from roundup.dist.command.build import build, list_message_files
26 from roundup.dist.command.bdist_rpm import bdist_rpm 25 from roundup.dist.command.bdist_rpm import bdist_rpm
27 from roundup.dist.command.install_lib import install_lib 26 from roundup.dist.command.install_lib import install_lib
28 27
29 try: 28 try:
67 'roundup.cgi.TAL', 66 'roundup.cgi.TAL',
68 'roundup.cgi.ZTUtils', 67 'roundup.cgi.ZTUtils',
69 'roundup.backends', 68 'roundup.backends',
70 'roundup.scripts', 69 'roundup.scripts',
71 ] 70 ]
72 py_modules = ['roundup.demo',]
73 71
74 # build list of scripts from their implementation modules 72 # build list of scripts from their implementation modules
75 scripts = [scriptname(f) for f in glob('roundup/scripts/[!_]*.py')] 73 scripts = [scriptname(f) for f in glob('roundup/scripts/[!_]*.py')]
76 74
77 data_files = [ 75 data_files = [
141 ], 139 ],
142 140
143 # Override certain command classes with our own ones 141 # Override certain command classes with our own ones
144 cmdclass= {'build_doc': build_doc, 142 cmdclass= {'build_doc': build_doc,
145 'build_scripts': build_scripts, 143 'build_scripts': build_scripts,
146 'build_py': build_py,
147 'build': build, 144 'build': build,
148 'bdist_rpm': bdist_rpm, 145 'bdist_rpm': bdist_rpm,
149 'install_lib': install_lib, 146 'install_lib': install_lib,
150 }, 147 },
151 packages=packages, 148 packages=packages,
152 py_modules=py_modules,
153 scripts=scripts, 149 scripts=scripts,
154 data_files=data_files) 150 data_files=data_files)
155 151
156 if __name__ == '__main__': 152 if __name__ == '__main__':
157 main() 153 main()

Roundup Issue Tracker: http://roundup-tracker.org/