Skip to content

Commit a43f0a0

Browse files
author
Richard Jones
committed
check MANIFEST at build time
1 parent 62d0434 commit a43f0a0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
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 $
2020

2121
from distutils.core import setup, Extension
2222
from distutils.util import get_platform
2323
from distutils.command.build_scripts import build_scripts
24+
from distutils.command.build import build
2425

2526
import sys, os, string
2627
from glob import glob
@@ -149,6 +150,11 @@ def check_manifest():
149150
sys.exit(1)
150151

151152

153+
class build_roundup(build):
154+
def run(self):
155+
check_manifest()
156+
build.run(self)
157+
152158
#############################################################################
153159
### Main setup stuff
154160
#############################################################################
@@ -260,6 +266,7 @@ def main():
260266
# Override certain command classes with our own ones
261267
cmdclass = {
262268
'build_scripts': build_scripts_roundup,
269+
'build': build_roundup,
263270
},
264271
scripts = roundup_scripts,
265272

0 commit comments

Comments
 (0)