Added option to only do the prepatory steps, but not build anything
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -45,6 +45,8 @@ BUILD_ART2D = 0 # Build a canvas module using code from the wxArt2D project (
|
|||||||
|
|
||||||
CORE_ONLY = 0 # if true, don't build any of the above
|
CORE_ONLY = 0 # if true, don't build any of the above
|
||||||
|
|
||||||
|
PREP_ONLY = 0 # Only run the prepatory steps, not the actual build.
|
||||||
|
|
||||||
USE_SWIG = 0 # Should we actually execute SWIG, or just use the
|
USE_SWIG = 0 # Should we actually execute SWIG, or just use the
|
||||||
# files already in the distribution?
|
# files already in the distribution?
|
||||||
|
|
||||||
@@ -153,7 +155,7 @@ if os.name == 'nt':
|
|||||||
# Boolean (int) flags
|
# Boolean (int) flags
|
||||||
for flag in ['BUILD_GLCANVAS', 'BUILD_OGL', 'BUILD_STC', 'BUILD_XRC',
|
for flag in ['BUILD_GLCANVAS', 'BUILD_OGL', 'BUILD_STC', 'BUILD_XRC',
|
||||||
'BUILD_GIZMOS', 'BUILD_DLLWIDGET', 'BUILD_IEWIN',
|
'BUILD_GIZMOS', 'BUILD_DLLWIDGET', 'BUILD_IEWIN',
|
||||||
'CORE_ONLY', 'USE_SWIG', 'IN_CVS_TREE', 'UNICODE',
|
'CORE_ONLY', 'PREP_ONLY', 'USE_SWIG', 'IN_CVS_TREE', 'UNICODE',
|
||||||
'UNDEF_NDEBUG', 'NO_SCRIPTS',
|
'UNDEF_NDEBUG', 'NO_SCRIPTS',
|
||||||
'FINAL', 'HYBRID', ]:
|
'FINAL', 'HYBRID', ]:
|
||||||
for x in range(len(sys.argv)):
|
for x in range(len(sys.argv)):
|
||||||
@@ -500,7 +502,7 @@ swig_sources = run_swig(swig_files, 'src', GENDIR, PKGDIR,
|
|||||||
|
|
||||||
copy_file('src/__init__.py', PKGDIR, update=1, verbose=0)
|
copy_file('src/__init__.py', PKGDIR, update=1, verbose=0)
|
||||||
copy_file('src/__version__.py', PKGDIR, update=1, verbose=0)
|
copy_file('src/__version__.py', PKGDIR, update=1, verbose=0)
|
||||||
copy_file('src/wxc.pyd.manifest', PKGDIR, update=1, verbose=0)
|
|
||||||
|
|
||||||
if IN_CVS_TREE: # update the license files
|
if IN_CVS_TREE: # update the license files
|
||||||
mkpath('licence')
|
mkpath('licence')
|
||||||
@@ -1146,33 +1148,34 @@ else:
|
|||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
setup(name = PKGDIR,
|
if not PREP_ONLY:
|
||||||
version = VERSION,
|
setup(name = PKGDIR,
|
||||||
description = DESCRIPTION,
|
version = VERSION,
|
||||||
long_description = LONG_DESCRIPTION,
|
description = DESCRIPTION,
|
||||||
author = AUTHOR,
|
long_description = LONG_DESCRIPTION,
|
||||||
author_email = AUTHOR_EMAIL,
|
author = AUTHOR,
|
||||||
url = URL,
|
author_email = AUTHOR_EMAIL,
|
||||||
license = LICENSE,
|
url = URL,
|
||||||
|
license = LICENSE,
|
||||||
|
|
||||||
packages = [PKGDIR,
|
packages = [PKGDIR,
|
||||||
PKGDIR+'.lib',
|
PKGDIR+'.lib',
|
||||||
PKGDIR+'.lib.colourchooser',
|
PKGDIR+'.lib.colourchooser',
|
||||||
PKGDIR+'.lib.editor',
|
PKGDIR+'.lib.editor',
|
||||||
PKGDIR+'.lib.mixins',
|
PKGDIR+'.lib.mixins',
|
||||||
PKGDIR+'.lib.PyCrust',
|
PKGDIR+'.lib.PyCrust',
|
||||||
PKGDIR+'.tools',
|
PKGDIR+'.tools',
|
||||||
PKGDIR+'.tools.XRCed',
|
PKGDIR+'.tools.XRCed',
|
||||||
],
|
],
|
||||||
|
|
||||||
ext_package = PKGDIR,
|
ext_package = PKGDIR,
|
||||||
ext_modules = wxpExtensions,
|
ext_modules = wxpExtensions,
|
||||||
|
|
||||||
options = { 'build' : { 'build_base' : BUILD_BASE }},
|
options = { 'build' : { 'build_base' : BUILD_BASE }},
|
||||||
|
|
||||||
##data_files = TOOLS,
|
##data_files = TOOLS,
|
||||||
scripts = SCRIPTS,
|
scripts = SCRIPTS,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user