comparison setup.py @ 2214:39ffc2a7d901

check MANIFEST at build time
author Richard Jones <richard@users.sourceforge.net>
date Sat, 17 Apr 2004 01:47:15 +0000
parents 3c38d9be63a6
children 34df21044229
comparison
equal deleted inserted replaced
2213:3c38d9be63a6 2214:39ffc2a7d901
14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
18 # 18 #
19 # $Id: setup.py,v 1.60 2004-04-16 10:43:51 richard Exp $ 19 # $Id: setup.py,v 1.61 2004-04-17 01:47:15 richard Exp $
20 20
21 from distutils.core import setup, Extension 21 from distutils.core import setup, Extension
22 from distutils.util import get_platform 22 from distutils.util import get_platform
23 from distutils.command.build_scripts import build_scripts 23 from distutils.command.build_scripts import build_scripts
24 from distutils.command.build import build
24 25
25 import sys, os, string 26 import sys, os, string
26 from glob import glob 27 from glob import glob
27 28
28 # patch distutils if it can't cope with the "classifiers" keyword 29 # patch distutils if it can't cope with the "classifiers" keyword
146 n = len(manifest) 147 n = len(manifest)
147 print '\n*** SOURCE ERROR: There are files missing (%d/%d found)!'%( 148 print '\n*** SOURCE ERROR: There are files missing (%d/%d found)!'%(
148 n-len(err), n) 149 n-len(err), n)
149 sys.exit(1) 150 sys.exit(1)
150 151
152
153 class build_roundup(build):
154 def run(self):
155 check_manifest()
156 build.run(self)
151 157
152 ############################################################################# 158 #############################################################################
153 ### Main setup stuff 159 ### Main setup stuff
154 ############################################################################# 160 #############################################################################
155 161
258 ], 264 ],
259 265
260 # Override certain command classes with our own ones 266 # Override certain command classes with our own ones
261 cmdclass = { 267 cmdclass = {
262 'build_scripts': build_scripts_roundup, 268 'build_scripts': build_scripts_roundup,
269 'build': build_roundup,
263 }, 270 },
264 scripts = roundup_scripts, 271 scripts = roundup_scripts,
265 272
266 data_files = installdatafiles 273 data_files = installdatafiles
267 ) 274 )

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