2000-10-30 21:08:42 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
#----------------------------------------------------------------------
|
2004-03-25 21:36:29 +00:00
|
|
|
# Name: setup.py
|
|
|
|
# Purpose: Distutils script for building wxPython
|
|
|
|
#
|
|
|
|
# Author: Robin Dunn
|
|
|
|
#
|
|
|
|
# Created: 12-Oct-2000
|
|
|
|
# RCS-ID: $Id$
|
|
|
|
# Copyright: (c) 2000 by Total Control Software
|
|
|
|
# Licence: wxWindows license
|
2003-03-25 06:35:27 +00:00
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2005-02-07 19:17:17 +00:00
|
|
|
import sys, os
|
2001-10-27 00:08:14 +00:00
|
|
|
|
|
|
|
|
2004-03-25 21:36:29 +00:00
|
|
|
# The full contents of the wx.build.config module used to be located
|
|
|
|
# here in setup.py. They were split into a separate module so it will
|
|
|
|
# be installed with wxPython and can then be used by the build scripts
|
|
|
|
# of other extension modules that wich to be wxPython compatible. The
|
|
|
|
# split is still fairly new and hasn't been tested by building
|
|
|
|
# third-party extensions yet, so expect some things to still shift
|
|
|
|
# back and forth, and also more stuff in config.py will get converted
|
|
|
|
# to functions, etc.
|
2001-10-27 00:08:14 +00:00
|
|
|
|
2004-03-26 00:21:33 +00:00
|
|
|
# This script imports it as just "config" because if wxPython doesn't
|
|
|
|
# exist yet, then it can't be imported from wx.build.config (since
|
|
|
|
# wx._core doesn't exist yet.) So instead we keep the main copy of
|
|
|
|
# config .py in the same place as setup.py, and then copy it to
|
|
|
|
# wx/build as needed below.
|
|
|
|
|
2005-02-07 19:17:17 +00:00
|
|
|
# To fully support external builds, we need to have a build options
|
|
|
|
# file that is created whenever a new wxPython build is performed.
|
|
|
|
# We happen to be doing that in this script, so make sure to remove
|
|
|
|
# the build_options.py file, so that config.py will recreate it.
|
|
|
|
|
|
|
|
if os.path.exists("build_options.py"):
|
|
|
|
os.remove("build_options.py")
|
|
|
|
|
2004-03-25 21:36:29 +00:00
|
|
|
sys.setup_is_main = __name__ == "__main__" # an icky hack!
|
2004-03-26 00:21:33 +00:00
|
|
|
from config import *
|
|
|
|
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# Update the packaged config file.
|
|
|
|
#----------------------------------------------------------------------
|
2000-10-30 21:08:42 +00:00
|
|
|
|
2004-03-26 00:21:33 +00:00
|
|
|
copy_file('config.py', 'wx/build', update=1, verbose=1)
|
2005-02-07 19:17:17 +00:00
|
|
|
copy_file('build_options.py', 'wx/build', update=1, verbose=1)
|
2004-03-26 00:21:33 +00:00
|
|
|
CLEANUP.append('wx/build/config.py')
|
2005-02-07 19:17:17 +00:00
|
|
|
CLEANUP.append('wx/build/build_options.py')
|
2000-10-30 21:08:42 +00:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|
2003-07-02 23:13:10 +00:00
|
|
|
# Update the version file
|
2000-10-30 21:08:42 +00:00
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2004-03-25 21:36:29 +00:00
|
|
|
# The version file is unconditionally updated every time setup.py is
|
|
|
|
# run since the version string can change based on the UNICODE flag
|
|
|
|
|
2004-03-17 19:57:06 +00:00
|
|
|
open('wx/__version__.py', 'w').write("""\
|
2003-07-02 23:13:10 +00:00
|
|
|
# This file was generated by setup.py...
|
|
|
|
|
2003-11-12 21:34:20 +00:00
|
|
|
VERSION_STRING = '%(VERSION)s'
|
|
|
|
MAJOR_VERSION = %(VER_MAJOR)s
|
|
|
|
MINOR_VERSION = %(VER_MINOR)s
|
|
|
|
RELEASE_VERSION = %(VER_RELEASE)s
|
|
|
|
SUBREL_VERSION = %(VER_SUBREL)s
|
2003-07-02 23:13:10 +00:00
|
|
|
|
2003-11-12 21:34:20 +00:00
|
|
|
VERSION = (MAJOR_VERSION, MINOR_VERSION, RELEASE_VERSION,
|
2004-03-17 19:57:06 +00:00
|
|
|
SUBREL_VERSION, '%(VER_FLAGS)s')
|
2003-07-02 23:13:10 +00:00
|
|
|
|
2003-11-12 21:34:20 +00:00
|
|
|
RELEASE_NUMBER = RELEASE_VERSION # for compatibility
|
2003-07-02 23:13:10 +00:00
|
|
|
""" % globals())
|
2003-03-25 06:35:27 +00:00
|
|
|
|
2004-03-18 00:46:08 +00:00
|
|
|
CLEANUP.append('wx/__version__.py')
|
2000-10-30 21:08:42 +00:00
|
|
|
|
2001-02-16 08:19:50 +00:00
|
|
|
|
2004-10-15 00:47:56 +00:00
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# patch distutils if it can't cope with the "classifiers" or
|
|
|
|
# "download_url" keywords
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
|
|
|
if sys.version < '2.2.3':
|
|
|
|
from distutils.dist import DistributionMetadata
|
|
|
|
DistributionMetadata.classifiers = None
|
|
|
|
DistributionMetadata.download_url = None
|
|
|
|
depends = {}
|
|
|
|
else:
|
|
|
|
depends = {'depends' : depends}
|
|
|
|
|
|
|
|
|
2001-02-16 08:19:50 +00:00
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# Define the CORE extension module
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2003-03-25 06:35:27 +00:00
|
|
|
msg('Preparing CORE...')
|
2003-11-12 21:34:20 +00:00
|
|
|
swig_sources = run_swig(['core.i'], 'src', GENDIR, PKGDIR,
|
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps +
|
2003-11-26 06:09:56 +00:00
|
|
|
[ 'src/_accel.i',
|
|
|
|
'src/_app.i',
|
2003-11-12 21:34:20 +00:00
|
|
|
'src/_app_ex.py',
|
|
|
|
'src/_constraints.i',
|
|
|
|
'src/_core_api.i',
|
|
|
|
'src/_core_ex.py',
|
2004-04-25 06:51:10 +00:00
|
|
|
'src/__core_rename.i',
|
|
|
|
'src/__core_reverse.txt',
|
2003-11-12 21:34:20 +00:00
|
|
|
'src/_defs.i',
|
|
|
|
'src/_event.i',
|
|
|
|
'src/_event_ex.py',
|
2004-09-23 16:49:01 +00:00
|
|
|
'src/_evtloop.i',
|
2003-11-12 21:34:20 +00:00
|
|
|
'src/_evthandler.i',
|
|
|
|
'src/_filesys.i',
|
|
|
|
'src/_gdicmn.i',
|
|
|
|
'src/_image.i',
|
|
|
|
'src/_menu.i',
|
|
|
|
'src/_obj.i',
|
|
|
|
'src/_sizers.i',
|
|
|
|
'src/_gbsizer.i',
|
|
|
|
'src/_streams.i',
|
|
|
|
'src/_validator.i',
|
|
|
|
'src/_window.i',
|
2004-03-18 00:46:08 +00:00
|
|
|
'src/_control.i',
|
2004-04-25 06:51:10 +00:00
|
|
|
],
|
|
|
|
True)
|
2001-02-16 08:19:50 +00:00
|
|
|
|
2003-03-25 06:35:27 +00:00
|
|
|
copy_file('src/__init__.py', PKGDIR, update=1, verbose=0)
|
2004-03-18 00:46:08 +00:00
|
|
|
CLEANUP.append(opj(PKGDIR, '__init__.py'))
|
2001-02-16 08:19:50 +00:00
|
|
|
|
|
|
|
|
2003-11-12 21:34:20 +00:00
|
|
|
# update the license files
|
|
|
|
mkpath('licence')
|
|
|
|
for file in ['preamble.txt', 'licence.txt', 'licendoc.txt', 'lgpl.txt']:
|
|
|
|
copy_file(opj(WXDIR, 'docs', file), opj('licence',file), update=1, verbose=0)
|
2004-03-18 00:46:08 +00:00
|
|
|
CLEANUP.append(opj('licence',file))
|
|
|
|
CLEANUP.append('licence')
|
2000-10-30 21:08:42 +00:00
|
|
|
|
|
|
|
|
2003-03-25 06:35:27 +00:00
|
|
|
if os.name == 'nt':
|
|
|
|
build_locale_dir(opj(PKGDIR, 'locale'))
|
|
|
|
DATA_FILES += build_locale_list(opj(PKGDIR, 'locale'))
|
2001-07-29 03:06:02 +00:00
|
|
|
|
|
|
|
|
2003-03-25 06:35:27 +00:00
|
|
|
if os.name == 'nt':
|
|
|
|
rc_file = ['src/wxc.rc']
|
|
|
|
else:
|
|
|
|
rc_file = []
|
|
|
|
|
|
|
|
|
2004-04-25 06:51:10 +00:00
|
|
|
ext = Extension('_core_', ['src/helpers.cpp',
|
|
|
|
] + rc_file + swig_sources,
|
2003-03-25 06:35:27 +00:00
|
|
|
|
|
|
|
include_dirs = includes,
|
|
|
|
define_macros = defines,
|
|
|
|
|
|
|
|
library_dirs = libdirs,
|
|
|
|
libraries = libs,
|
|
|
|
|
|
|
|
extra_compile_args = cflags,
|
|
|
|
extra_link_args = lflags,
|
2003-11-12 21:34:20 +00:00
|
|
|
|
2004-10-15 00:47:56 +00:00
|
|
|
**depends
|
2003-03-25 06:35:27 +00:00
|
|
|
)
|
|
|
|
wxpExtensions.append(ext)
|
|
|
|
|
|
|
|
|
2003-11-12 21:34:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Extension for the GDI module
|
|
|
|
swig_sources = run_swig(['gdi.i'], 'src', GENDIR, PKGDIR,
|
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps +
|
2004-04-25 06:51:10 +00:00
|
|
|
['src/__gdi_rename.i',
|
2004-03-18 00:46:08 +00:00
|
|
|
'src/_bitmap.i',
|
|
|
|
'src/_colour.i',
|
|
|
|
'src/_dc.i',
|
|
|
|
'src/_gdiobj.i',
|
|
|
|
'src/_imaglist.i',
|
|
|
|
'src/_region.i',
|
|
|
|
'src/_stockobjs.i',
|
2003-11-12 21:34:20 +00:00
|
|
|
'src/_effects.i',
|
2004-03-18 00:46:08 +00:00
|
|
|
'src/_intl.i',
|
|
|
|
'src/_intl_ex.py',
|
|
|
|
'src/_brush.i',
|
|
|
|
'src/_cursor.i',
|
|
|
|
'src/_font.i',
|
|
|
|
'src/_icon.i',
|
|
|
|
'src/_pen.i',
|
|
|
|
'src/_palette.i',
|
2005-06-09 20:11:14 +00:00
|
|
|
'src/_renderer.i',
|
2004-04-25 06:51:10 +00:00
|
|
|
],
|
|
|
|
True)
|
|
|
|
ext = Extension('_gdi_', ['src/drawlist.cpp'] + swig_sources,
|
2003-03-25 06:35:27 +00:00
|
|
|
include_dirs = includes,
|
|
|
|
define_macros = defines,
|
|
|
|
library_dirs = libdirs,
|
|
|
|
libraries = libs,
|
|
|
|
extra_compile_args = cflags,
|
|
|
|
extra_link_args = lflags,
|
2004-10-15 00:47:56 +00:00
|
|
|
**depends
|
2003-03-25 06:35:27 +00:00
|
|
|
)
|
|
|
|
wxpExtensions.append(ext)
|
|
|
|
|
|
|
|
|
2003-11-12 21:34:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Extension for the windows module
|
|
|
|
swig_sources = run_swig(['windows.i'], 'src', GENDIR, PKGDIR,
|
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps +
|
2004-04-25 06:51:10 +00:00
|
|
|
['src/__windows_rename.i',
|
|
|
|
'src/__windows_reverse.txt',
|
2003-11-12 21:34:20 +00:00
|
|
|
'src/_panel.i',
|
2004-03-18 00:46:08 +00:00
|
|
|
'src/_toplvl.i',
|
|
|
|
'src/_statusbar.i',
|
|
|
|
'src/_splitter.i',
|
|
|
|
'src/_sashwin.i',
|
|
|
|
'src/_popupwin.i',
|
|
|
|
'src/_tipwin.i',
|
|
|
|
'src/_vscroll.i',
|
|
|
|
'src/_taskbar.i',
|
|
|
|
'src/_cmndlgs.i',
|
|
|
|
'src/_mdi.i',
|
|
|
|
'src/_pywindows.i',
|
|
|
|
'src/_printfw.i',
|
2004-04-25 06:51:10 +00:00
|
|
|
],
|
|
|
|
True)
|
|
|
|
ext = Extension('_windows_', swig_sources,
|
2003-03-25 06:35:27 +00:00
|
|
|
include_dirs = includes,
|
|
|
|
define_macros = defines,
|
|
|
|
library_dirs = libdirs,
|
|
|
|
libraries = libs,
|
|
|
|
extra_compile_args = cflags,
|
|
|
|
extra_link_args = lflags,
|
2004-10-15 00:47:56 +00:00
|
|
|
**depends
|
2003-03-25 06:35:27 +00:00
|
|
|
)
|
|
|
|
wxpExtensions.append(ext)
|
|
|
|
|
|
|
|
|
2003-11-12 21:34:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Extension for the controls module
|
|
|
|
swig_sources = run_swig(['controls.i'], 'src', GENDIR, PKGDIR,
|
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps +
|
2004-04-25 06:51:10 +00:00
|
|
|
[ 'src/__controls_rename.i',
|
|
|
|
'src/__controls_reverse.txt',
|
2004-02-24 02:44:10 +00:00
|
|
|
'src/_toolbar.i',
|
2004-03-18 00:46:08 +00:00
|
|
|
'src/_button.i',
|
|
|
|
'src/_checkbox.i',
|
|
|
|
'src/_choice.i',
|
|
|
|
'src/_combobox.i',
|
|
|
|
'src/_gauge.i',
|
|
|
|
'src/_statctrls.i',
|
|
|
|
'src/_listbox.i',
|
|
|
|
'src/_textctrl.i',
|
|
|
|
'src/_scrolbar.i',
|
|
|
|
'src/_spin.i',
|
|
|
|
'src/_radio.i',
|
|
|
|
'src/_slider.i',
|
|
|
|
'src/_tglbtn.i',
|
|
|
|
'src/_notebook.i',
|
|
|
|
'src/_listctrl.i',
|
|
|
|
'src/_treectrl.i',
|
|
|
|
'src/_dirctrl.i',
|
|
|
|
'src/_pycontrol.i',
|
|
|
|
'src/_cshelp.i',
|
|
|
|
'src/_dragimg.i',
|
2005-02-18 04:38:30 +00:00
|
|
|
'src/_datectrl.i',
|
2004-04-25 06:51:10 +00:00
|
|
|
],
|
|
|
|
True)
|
|
|
|
ext = Extension('_controls_', swig_sources,
|
2003-11-12 21:34:20 +00:00
|
|
|
include_dirs = includes,
|
|
|
|
define_macros = defines,
|
|
|
|
library_dirs = libdirs,
|
|
|
|
libraries = libs,
|
|
|
|
extra_compile_args = cflags,
|
|
|
|
extra_link_args = lflags,
|
2004-10-15 00:47:56 +00:00
|
|
|
**depends
|
2003-11-12 21:34:20 +00:00
|
|
|
)
|
|
|
|
wxpExtensions.append(ext)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Extension for the misc module
|
|
|
|
swig_sources = run_swig(['misc.i'], 'src', GENDIR, PKGDIR,
|
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps +
|
2004-04-25 06:51:10 +00:00
|
|
|
[ 'src/__misc_rename.i',
|
|
|
|
'src/__misc_reverse.txt',
|
|
|
|
'src/_settings.i',
|
2004-03-18 00:46:08 +00:00
|
|
|
'src/_functions.i',
|
|
|
|
'src/_misc.i',
|
|
|
|
'src/_tipdlg.i',
|
|
|
|
'src/_timer.i',
|
|
|
|
'src/_log.i',
|
|
|
|
'src/_process.i',
|
|
|
|
'src/_joystick.i',
|
|
|
|
'src/_sound.i',
|
|
|
|
'src/_mimetype.i',
|
|
|
|
'src/_artprov.i',
|
|
|
|
'src/_config.i',
|
|
|
|
'src/_datetime.i',
|
|
|
|
'src/_dataobj.i',
|
|
|
|
'src/_dnd.i',
|
|
|
|
'src/_display.i',
|
2003-11-12 21:34:20 +00:00
|
|
|
'src/_clipbrd.i',
|
2004-11-11 02:26:18 +00:00
|
|
|
'src/_stdpaths.i',
|
2004-04-25 06:51:10 +00:00
|
|
|
],
|
|
|
|
True)
|
|
|
|
ext = Extension('_misc_', swig_sources,
|
2003-11-12 21:34:20 +00:00
|
|
|
include_dirs = includes,
|
|
|
|
define_macros = defines,
|
|
|
|
library_dirs = libdirs,
|
|
|
|
libraries = libs,
|
|
|
|
extra_compile_args = cflags,
|
|
|
|
extra_link_args = lflags,
|
2004-10-15 00:47:56 +00:00
|
|
|
**depends
|
2003-11-12 21:34:20 +00:00
|
|
|
)
|
|
|
|
wxpExtensions.append(ext)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##
|
|
|
|
## Core modules that are not in the "core" namespace start here
|
|
|
|
##
|
|
|
|
|
2003-03-25 06:35:27 +00:00
|
|
|
swig_sources = run_swig(['calendar.i'], 'src', GENDIR, PKGDIR,
|
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps)
|
2003-11-12 21:34:20 +00:00
|
|
|
ext = Extension('_calendar', swig_sources,
|
|
|
|
include_dirs = includes,
|
|
|
|
define_macros = defines,
|
|
|
|
library_dirs = libdirs,
|
|
|
|
libraries = libs,
|
|
|
|
extra_compile_args = cflags,
|
|
|
|
extra_link_args = lflags,
|
2004-10-15 00:47:56 +00:00
|
|
|
**depends
|
2003-11-12 21:34:20 +00:00
|
|
|
)
|
|
|
|
wxpExtensions.append(ext)
|
|
|
|
|
|
|
|
|
|
|
|
swig_sources = run_swig(['grid.i'], 'src', GENDIR, PKGDIR,
|
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps)
|
|
|
|
ext = Extension('_grid', swig_sources,
|
2003-03-25 06:35:27 +00:00
|
|
|
include_dirs = includes,
|
|
|
|
define_macros = defines,
|
|
|
|
library_dirs = libdirs,
|
|
|
|
libraries = libs,
|
|
|
|
extra_compile_args = cflags,
|
|
|
|
extra_link_args = lflags,
|
2004-10-15 00:47:56 +00:00
|
|
|
**depends
|
2003-03-25 06:35:27 +00:00
|
|
|
)
|
|
|
|
wxpExtensions.append(ext)
|
|
|
|
|
|
|
|
|
2003-11-12 21:34:20 +00:00
|
|
|
|
|
|
|
swig_sources = run_swig(['html.i'], 'src', GENDIR, PKGDIR,
|
2003-03-25 06:35:27 +00:00
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps)
|
2003-11-12 21:34:20 +00:00
|
|
|
ext = Extension('_html', swig_sources,
|
2003-03-25 06:35:27 +00:00
|
|
|
include_dirs = includes,
|
|
|
|
define_macros = defines,
|
|
|
|
library_dirs = libdirs,
|
|
|
|
libraries = libs,
|
|
|
|
extra_compile_args = cflags,
|
|
|
|
extra_link_args = lflags,
|
2004-10-15 00:47:56 +00:00
|
|
|
**depends
|
2003-03-25 06:35:27 +00:00
|
|
|
)
|
|
|
|
wxpExtensions.append(ext)
|
|
|
|
|
2004-10-19 21:00:30 +00:00
|
|
|
|
2004-12-14 22:46:28 +00:00
|
|
|
mediaLibs = libs[:]
|
|
|
|
if not MONOLITHIC and os.name == 'nt':
|
|
|
|
mediaLibs.append(makeLibName('media')[0])
|
2004-11-24 19:34:54 +00:00
|
|
|
swig_sources = run_swig(['media.i'], 'src', GENDIR, PKGDIR,
|
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps)
|
|
|
|
ext = Extension('_media', swig_sources,
|
|
|
|
include_dirs = includes,
|
|
|
|
define_macros = defines,
|
|
|
|
library_dirs = libdirs,
|
2004-12-14 22:46:28 +00:00
|
|
|
libraries = mediaLibs,
|
2004-11-24 19:34:54 +00:00
|
|
|
extra_compile_args = cflags,
|
|
|
|
extra_link_args = lflags,
|
|
|
|
**depends
|
|
|
|
)
|
|
|
|
wxpExtensions.append(ext)
|
|
|
|
|
|
|
|
|
2004-10-19 06:07:13 +00:00
|
|
|
swig_sources = run_swig(['webkit.i'], 'src', GENDIR, PKGDIR,
|
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps)
|
|
|
|
ext = Extension('_webkit', swig_sources,
|
|
|
|
include_dirs = includes,
|
|
|
|
define_macros = defines,
|
|
|
|
library_dirs = libdirs,
|
|
|
|
libraries = libs,
|
|
|
|
extra_compile_args = cflags,
|
|
|
|
extra_link_args = lflags,
|
|
|
|
**depends
|
|
|
|
)
|
|
|
|
wxpExtensions.append(ext)
|
2003-11-12 21:34:20 +00:00
|
|
|
|
2004-10-19 21:00:30 +00:00
|
|
|
|
|
|
|
|
2003-03-25 06:35:27 +00:00
|
|
|
swig_sources = run_swig(['wizard.i'], 'src', GENDIR, PKGDIR,
|
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps)
|
2003-11-12 21:34:20 +00:00
|
|
|
ext = Extension('_wizard', swig_sources,
|
2003-03-25 06:35:27 +00:00
|
|
|
include_dirs = includes,
|
|
|
|
define_macros = defines,
|
|
|
|
library_dirs = libdirs,
|
|
|
|
libraries = libs,
|
|
|
|
extra_compile_args = cflags,
|
|
|
|
extra_link_args = lflags,
|
2004-10-15 00:47:56 +00:00
|
|
|
**depends
|
2003-03-25 06:35:27 +00:00
|
|
|
)
|
|
|
|
wxpExtensions.append(ext)
|
2002-08-17 19:08:21 +00:00
|
|
|
|
|
|
|
|
2004-09-23 16:49:01 +00:00
|
|
|
|
|
|
|
swig_sources = run_swig(['xrc.i'], 'src', GENDIR, PKGDIR,
|
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps +
|
|
|
|
[ 'src/_xrc_rename.i',
|
|
|
|
'src/_xrc_ex.py',
|
|
|
|
'src/_xmlres.i',
|
|
|
|
'src/_xmlsub.i',
|
|
|
|
'src/_xml.i',
|
|
|
|
'src/_xmlhandler.i',
|
|
|
|
])
|
|
|
|
ext = Extension('_xrc',
|
|
|
|
swig_sources,
|
|
|
|
|
|
|
|
include_dirs = includes + CONTRIBS_INC,
|
|
|
|
define_macros = defines,
|
|
|
|
|
|
|
|
library_dirs = libdirs,
|
|
|
|
libraries = libs,
|
|
|
|
|
|
|
|
extra_compile_args = cflags,
|
|
|
|
extra_link_args = lflags,
|
|
|
|
)
|
|
|
|
wxpExtensions.append(ext)
|
|
|
|
|
|
|
|
|
2000-10-30 21:08:42 +00:00
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# Define the GLCanvas extension module
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2003-03-25 06:35:27 +00:00
|
|
|
if BUILD_GLCANVAS:
|
2001-07-05 18:54:09 +00:00
|
|
|
msg('Preparing GLCANVAS...')
|
2000-10-30 21:08:42 +00:00
|
|
|
location = 'contrib/glcanvas'
|
|
|
|
|
2003-11-12 21:34:20 +00:00
|
|
|
swig_sources = run_swig(['glcanvas.i'], location, GENDIR, PKGDIR,
|
2002-03-20 20:43:39 +00:00
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps)
|
2000-10-30 21:08:42 +00:00
|
|
|
|
|
|
|
gl_libs = []
|
|
|
|
if os.name == 'posix':
|
2004-08-09 23:10:26 +00:00
|
|
|
gl_config = os.popen(WX_CONFIG + ' --libs gl', 'r').read()[:-1]
|
2003-03-25 06:35:27 +00:00
|
|
|
gl_lflags = gl_config.split() + lflags
|
2001-10-04 17:12:27 +00:00
|
|
|
gl_libs = libs
|
2001-03-26 21:31:04 +00:00
|
|
|
else:
|
2003-07-26 00:20:04 +00:00
|
|
|
gl_libs = libs + ['opengl32', 'glu32'] + makeLibName('gl')
|
2001-10-04 17:12:27 +00:00
|
|
|
gl_lflags = lflags
|
2000-10-30 21:08:42 +00:00
|
|
|
|
2003-11-12 21:34:20 +00:00
|
|
|
ext = Extension('_glcanvas',
|
2003-07-26 00:20:04 +00:00
|
|
|
swig_sources,
|
2000-12-22 00:06:04 +00:00
|
|
|
|
2004-03-11 06:28:07 +00:00
|
|
|
include_dirs = includes + CONTRIBS_INC,
|
2000-12-22 00:06:04 +00:00
|
|
|
define_macros = defines,
|
|
|
|
|
|
|
|
library_dirs = libdirs,
|
2001-10-04 17:12:27 +00:00
|
|
|
libraries = gl_libs,
|
2000-12-22 00:06:04 +00:00
|
|
|
|
|
|
|
extra_compile_args = cflags,
|
2001-10-04 17:12:27 +00:00
|
|
|
extra_link_args = gl_lflags,
|
2000-12-22 00:06:04 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
wxpExtensions.append(ext)
|
2000-10-30 21:08:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# Define the OGL extension module
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2003-03-25 06:35:27 +00:00
|
|
|
if BUILD_OGL:
|
2001-07-05 18:54:09 +00:00
|
|
|
msg('Preparing OGL...')
|
2000-10-30 21:08:42 +00:00
|
|
|
location = 'contrib/ogl'
|
|
|
|
|
2003-11-21 20:50:36 +00:00
|
|
|
swig_sources = run_swig(['ogl.i'], location, GENDIR, PKGDIR,
|
2003-11-12 21:34:20 +00:00
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps +
|
|
|
|
[ '%s/_oglbasic.i' % location,
|
|
|
|
'%s/_oglshapes.i' % location,
|
|
|
|
'%s/_oglshapes2.i' % location,
|
|
|
|
'%s/_oglcanvas.i' % location,
|
|
|
|
'%s/_ogldefs.i' % location,
|
|
|
|
])
|
2000-10-30 21:08:42 +00:00
|
|
|
|
2003-11-12 21:34:20 +00:00
|
|
|
ext = Extension('_ogl',
|
2003-07-24 00:28:34 +00:00
|
|
|
swig_sources,
|
2000-12-22 00:06:04 +00:00
|
|
|
|
2004-03-11 06:28:07 +00:00
|
|
|
include_dirs = includes + [ location ] + CONTRIBS_INC,
|
2003-07-18 02:26:53 +00:00
|
|
|
define_macros = defines + [('wxUSE_DEPRECATED', '0')],
|
2000-12-22 00:06:04 +00:00
|
|
|
|
|
|
|
library_dirs = libdirs,
|
2003-07-24 00:28:34 +00:00
|
|
|
libraries = libs + makeLibName('ogl'),
|
2000-12-22 00:06:04 +00:00
|
|
|
|
|
|
|
extra_compile_args = cflags,
|
|
|
|
extra_link_args = lflags,
|
|
|
|
)
|
|
|
|
|
|
|
|
wxpExtensions.append(ext)
|
|
|
|
|
|
|
|
|
2000-10-30 21:08:42 +00:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# Define the STC extension module
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2003-03-25 06:35:27 +00:00
|
|
|
if BUILD_STC:
|
2001-07-05 18:54:09 +00:00
|
|
|
msg('Preparing STC...')
|
2000-10-30 21:08:42 +00:00
|
|
|
location = 'contrib/stc'
|
2004-09-25 23:15:58 +00:00
|
|
|
#if os.name == 'nt':
|
|
|
|
STC_H = opj(WXDIR, 'contrib', 'include/wx/stc')
|
|
|
|
#else:
|
|
|
|
# STC_H = opj(WXPREFIX, 'include/wx-%d.%d/wx/stc' % (VER_MAJOR, VER_MINOR))
|
2001-09-01 02:35:31 +00:00
|
|
|
|
2004-01-14 01:51:52 +00:00
|
|
|
## NOTE: need to add something like this to the stc.bkl...
|
2001-09-01 02:35:31 +00:00
|
|
|
|
2003-07-24 00:28:34 +00:00
|
|
|
## # Check if gen_iface needs to be run for the wxSTC sources
|
|
|
|
## if (newer(opj(CTRB_SRC, 'stc/stc.h.in'), opj(CTRB_INC, 'stc/stc.h' )) or
|
|
|
|
## newer(opj(CTRB_SRC, 'stc/stc.cpp.in'), opj(CTRB_SRC, 'stc/stc.cpp')) or
|
|
|
|
## newer(opj(CTRB_SRC, 'stc/gen_iface.py'), opj(CTRB_SRC, 'stc/stc.cpp'))):
|
2001-09-01 02:35:31 +00:00
|
|
|
|
2003-07-24 00:28:34 +00:00
|
|
|
## msg('Running gen_iface.py, regenerating stc.h and stc.cpp...')
|
|
|
|
## cwd = os.getcwd()
|
|
|
|
## os.chdir(opj(CTRB_SRC, 'stc'))
|
|
|
|
## sys.path.insert(0, os.curdir)
|
|
|
|
## import gen_iface
|
|
|
|
## gen_iface.main([])
|
|
|
|
## os.chdir(cwd)
|
2000-10-30 21:08:42 +00:00
|
|
|
|
|
|
|
|
2004-04-15 19:52:50 +00:00
|
|
|
swig_sources = run_swig(['stc.i'], location, GENDIR, PKGDIR,
|
2000-10-30 21:08:42 +00:00
|
|
|
USE_SWIG, swig_force,
|
|
|
|
swig_args + ['-I'+STC_H, '-I'+location],
|
2005-04-16 19:41:33 +00:00
|
|
|
[opj(STC_H, 'stc.h'),
|
|
|
|
opj(location, "_stc_utf8_methods.py"),
|
2005-04-16 21:41:28 +00:00
|
|
|
opj(location, "_stc_docstrings.i"),
|
|
|
|
opj(location, "_stc_gendocs.i"),
|
2005-04-16 19:41:33 +00:00
|
|
|
] + swig_deps)
|
2000-10-30 21:08:42 +00:00
|
|
|
|
2003-11-12 21:34:20 +00:00
|
|
|
ext = Extension('_stc',
|
2003-07-24 00:28:34 +00:00
|
|
|
swig_sources,
|
|
|
|
|
2004-03-11 06:28:07 +00:00
|
|
|
include_dirs = includes + CONTRIBS_INC,
|
2003-07-24 00:28:34 +00:00
|
|
|
define_macros = defines,
|
2000-12-22 00:06:04 +00:00
|
|
|
|
|
|
|
library_dirs = libdirs,
|
2003-07-24 00:28:34 +00:00
|
|
|
libraries = libs + makeLibName('stc'),
|
2000-10-30 21:08:42 +00:00
|
|
|
|
2000-12-22 00:06:04 +00:00
|
|
|
extra_compile_args = cflags,
|
|
|
|
extra_link_args = lflags,
|
|
|
|
)
|
|
|
|
|
|
|
|
wxpExtensions.append(ext)
|
2000-10-30 21:08:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2001-04-30 18:37:26 +00:00
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# Define the IEWIN extension module (experimental)
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2003-03-25 06:35:27 +00:00
|
|
|
if BUILD_IEWIN:
|
2001-07-05 18:54:09 +00:00
|
|
|
msg('Preparing IEWIN...')
|
2001-04-30 18:37:26 +00:00
|
|
|
location = 'contrib/iewin'
|
|
|
|
|
|
|
|
swig_files = ['iewin.i', ]
|
|
|
|
|
|
|
|
swig_sources = run_swig(swig_files, location, '', PKGDIR,
|
2002-03-20 20:43:39 +00:00
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps)
|
2001-04-30 18:37:26 +00:00
|
|
|
|
|
|
|
|
2004-01-14 01:51:52 +00:00
|
|
|
ext = Extension('_iewin', ['%s/IEHtmlWin.cpp' % location,
|
2002-07-03 22:05:30 +00:00
|
|
|
'%s/wxactivex.cpp' % location,
|
2001-04-30 18:37:26 +00:00
|
|
|
] + swig_sources,
|
|
|
|
|
2004-03-11 06:28:07 +00:00
|
|
|
include_dirs = includes + CONTRIBS_INC,
|
2001-04-30 18:37:26 +00:00
|
|
|
define_macros = defines,
|
|
|
|
|
|
|
|
library_dirs = libdirs,
|
|
|
|
libraries = libs,
|
|
|
|
|
|
|
|
extra_compile_args = cflags,
|
2004-03-23 05:29:50 +00:00
|
|
|
extra_link_args = lflags,
|
|
|
|
)
|
|
|
|
|
|
|
|
wxpExtensions.append(ext)
|
|
|
|
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# Define the ACTIVEX extension module (experimental)
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
|
|
|
if BUILD_ACTIVEX:
|
|
|
|
msg('Preparing ACTIVEX...')
|
|
|
|
location = 'contrib/activex'
|
|
|
|
axloc = opj(location, "wxie")
|
|
|
|
|
|
|
|
swig_files = ['activex.i', ]
|
|
|
|
|
|
|
|
swig_sources = run_swig(swig_files, location, '', PKGDIR,
|
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps +
|
|
|
|
[ '%s/_activex_ex.py' % location])
|
|
|
|
|
|
|
|
|
|
|
|
ext = Extension('_activex', ['%s/IEHtmlWin.cpp' % axloc,
|
|
|
|
'%s/wxactivex.cpp' % axloc,
|
|
|
|
] + swig_sources,
|
|
|
|
|
|
|
|
include_dirs = includes + [ axloc ],
|
|
|
|
define_macros = defines,
|
|
|
|
|
|
|
|
library_dirs = libdirs,
|
|
|
|
libraries = libs,
|
|
|
|
|
|
|
|
extra_compile_args = cflags,
|
2001-04-30 18:37:26 +00:00
|
|
|
extra_link_args = lflags,
|
|
|
|
)
|
|
|
|
|
|
|
|
wxpExtensions.append(ext)
|
|
|
|
|
|
|
|
|
2001-11-25 09:10:01 +00:00
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# Define the GIZMOS extension module
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2003-03-25 06:35:27 +00:00
|
|
|
if BUILD_GIZMOS:
|
2001-11-25 09:10:01 +00:00
|
|
|
msg('Preparing GIZMOS...')
|
|
|
|
location = 'contrib/gizmos'
|
|
|
|
|
2003-11-21 20:50:36 +00:00
|
|
|
swig_sources = run_swig(['gizmos.i'], location, GENDIR, PKGDIR,
|
2002-03-20 20:43:39 +00:00
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps)
|
2001-11-25 09:10:01 +00:00
|
|
|
|
2003-11-12 21:34:20 +00:00
|
|
|
ext = Extension('_gizmos',
|
2004-05-25 04:59:23 +00:00
|
|
|
[ '%s/treelistctrl.cpp' % opj(location, 'wxCode/src') ] + swig_sources,
|
2001-11-25 09:10:01 +00:00
|
|
|
|
2004-05-25 04:59:23 +00:00
|
|
|
include_dirs = includes + [ location, opj(location, 'wxCode/include') ] + CONTRIBS_INC,
|
2001-11-25 09:10:01 +00:00
|
|
|
define_macros = defines,
|
|
|
|
|
|
|
|
library_dirs = libdirs,
|
2003-07-24 00:28:34 +00:00
|
|
|
libraries = libs + makeLibName('gizmos'),
|
2001-11-25 09:10:01 +00:00
|
|
|
|
|
|
|
extra_compile_args = cflags,
|
|
|
|
extra_link_args = lflags,
|
|
|
|
)
|
|
|
|
|
|
|
|
wxpExtensions.append(ext)
|
|
|
|
|
|
|
|
|
2005-04-04 23:15:29 +00:00
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# Define the ANIMATE extension module
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
|
|
|
if BUILD_ANIMATE:
|
|
|
|
msg('Preparing ANIMATE...')
|
|
|
|
location = 'contrib/animate'
|
|
|
|
|
|
|
|
swig_sources = run_swig(['animate.i'], location, GENDIR, PKGDIR,
|
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps)
|
|
|
|
|
|
|
|
ext = Extension('_animate',
|
|
|
|
swig_sources,
|
|
|
|
|
|
|
|
include_dirs = includes + CONTRIBS_INC,
|
|
|
|
define_macros = defines,
|
|
|
|
|
|
|
|
library_dirs = libdirs,
|
|
|
|
libraries = libs + makeLibName('animate'),
|
|
|
|
|
|
|
|
extra_compile_args = cflags,
|
|
|
|
extra_link_args = lflags,
|
|
|
|
)
|
|
|
|
|
|
|
|
wxpExtensions.append(ext)
|
|
|
|
|
|
|
|
|
2001-11-25 09:10:01 +00:00
|
|
|
|
2001-12-06 19:59:37 +00:00
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# Define the DLLWIDGET extension module
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2003-03-25 06:35:27 +00:00
|
|
|
if BUILD_DLLWIDGET:
|
2001-12-06 19:59:37 +00:00
|
|
|
msg('Preparing DLLWIDGET...')
|
|
|
|
location = 'contrib/dllwidget'
|
|
|
|
swig_files = ['dllwidget_.i']
|
|
|
|
|
|
|
|
swig_sources = run_swig(swig_files, location, '', PKGDIR,
|
2002-03-20 20:43:39 +00:00
|
|
|
USE_SWIG, swig_force, swig_args, swig_deps)
|
2001-12-06 19:59:37 +00:00
|
|
|
|
|
|
|
# copy a contrib project specific py module to the main package dir
|
|
|
|
copy_file(opj(location, 'dllwidget.py'), PKGDIR, update=1, verbose=0)
|
2004-03-18 00:46:08 +00:00
|
|
|
CLEANUP.append(opj(PKGDIR, 'dllwidget.py'))
|
2001-12-06 19:59:37 +00:00
|
|
|
|
|
|
|
ext = Extension('dllwidget_c', [
|
|
|
|
'%s/dllwidget.cpp' % location,
|
|
|
|
] + swig_sources,
|
|
|
|
|
2004-03-11 06:28:07 +00:00
|
|
|
include_dirs = includes + CONTRIBS_INC,
|
2001-12-06 19:59:37 +00:00
|
|
|
define_macros = defines,
|
|
|
|
|
|
|
|
library_dirs = libdirs,
|
|
|
|
libraries = libs,
|
|
|
|
|
|
|
|
extra_compile_args = cflags,
|
|
|
|
extra_link_args = lflags,
|
|
|
|
)
|
|
|
|
|
|
|
|
wxpExtensions.append(ext)
|
|
|
|
|
|
|
|
|
2003-03-25 06:35:27 +00:00
|
|
|
|
2004-09-23 16:49:01 +00:00
|
|
|
|
2003-03-25 06:35:27 +00:00
|
|
|
#----------------------------------------------------------------------
|
2004-03-25 21:36:29 +00:00
|
|
|
# Tools, scripts data files, etc.
|
2003-03-25 06:35:27 +00:00
|
|
|
#----------------------------------------------------------------------
|
2001-12-20 17:07:50 +00:00
|
|
|
|
2002-08-12 21:30:02 +00:00
|
|
|
if NO_SCRIPTS:
|
|
|
|
SCRIPTS = None
|
|
|
|
else:
|
2003-03-25 06:35:27 +00:00
|
|
|
SCRIPTS = [opj('scripts/helpviewer'),
|
|
|
|
opj('scripts/img2png'),
|
2002-08-12 21:30:02 +00:00
|
|
|
opj('scripts/img2py'),
|
2004-09-29 00:11:17 +00:00
|
|
|
opj('scripts/img2xpm'),
|
|
|
|
opj('scripts/pyalacarte'),
|
|
|
|
opj('scripts/pyalamode'),
|
2002-08-12 21:30:02 +00:00
|
|
|
opj('scripts/pycrust'),
|
2004-09-29 00:11:17 +00:00
|
|
|
opj('scripts/pyshell'),
|
2003-07-02 23:13:10 +00:00
|
|
|
opj('scripts/pywrap'),
|
|
|
|
opj('scripts/pywrap'),
|
2004-10-06 21:54:49 +00:00
|
|
|
opj('scripts/pywxrc'),
|
2004-09-29 00:11:17 +00:00
|
|
|
opj('scripts/xrced'),
|
2002-08-12 21:30:02 +00:00
|
|
|
]
|
2004-09-29 00:11:17 +00:00
|
|
|
|
2001-12-06 19:59:37 +00:00
|
|
|
|
2001-04-30 18:37:26 +00:00
|
|
|
|
2004-01-14 02:10:32 +00:00
|
|
|
DATA_FILES += find_data_files('wx/tools/XRCed', '*.txt', '*.xrc')
|
|
|
|
DATA_FILES += find_data_files('wx/py', '*.txt', '*.ico', '*.css', '*.html')
|
2003-07-02 23:13:10 +00:00
|
|
|
DATA_FILES += find_data_files('wx', '*.txt', '*.css', '*.html')
|
2003-03-25 06:35:27 +00:00
|
|
|
|
|
|
|
|
2004-03-25 21:36:29 +00:00
|
|
|
if NO_HEADERS:
|
|
|
|
HEADERS = None
|
|
|
|
else:
|
|
|
|
h_files = glob.glob(opj("include/wx/wxPython/*.h"))
|
|
|
|
i_files = glob.glob(opj("src/*.i")) + \
|
|
|
|
glob.glob(opj("src/_*.py")) + \
|
|
|
|
glob.glob(opj("src/*.swg"))
|
|
|
|
|
2004-07-22 18:15:18 +00:00
|
|
|
HEADERS = zip(h_files, ["/wxPython"]*len(h_files)) + \
|
|
|
|
zip(i_files, ["/wxPython/i_files"]*len(i_files))
|
|
|
|
|
2004-03-25 21:36:29 +00:00
|
|
|
|
2004-09-29 00:11:17 +00:00
|
|
|
|
|
|
|
if INSTALL_MULTIVERSION:
|
2004-10-06 21:54:49 +00:00
|
|
|
EXTRA_PATH = getExtraPath(addOpts=EP_ADD_OPTS)
|
2004-09-29 00:11:17 +00:00
|
|
|
open("src/wx.pth", "w").write(EXTRA_PATH)
|
|
|
|
CLEANUP.append("src/wx.pth")
|
|
|
|
else:
|
|
|
|
EXTRA_PATH = None
|
|
|
|
|
|
|
|
|
|
|
|
|
2000-10-30 21:08:42 +00:00
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# Do the Setup/Build/Install/Whatever
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2001-02-16 08:19:50 +00:00
|
|
|
if __name__ == "__main__":
|
2003-03-25 06:35:27 +00:00
|
|
|
if not PREP_ONLY:
|
2004-09-29 00:11:17 +00:00
|
|
|
|
2003-11-12 21:34:20 +00:00
|
|
|
setup(name = 'wxPython',
|
2001-02-16 08:19:50 +00:00
|
|
|
version = VERSION,
|
|
|
|
description = DESCRIPTION,
|
|
|
|
long_description = LONG_DESCRIPTION,
|
|
|
|
author = AUTHOR,
|
|
|
|
author_email = AUTHOR_EMAIL,
|
|
|
|
url = URL,
|
2003-10-03 19:51:12 +00:00
|
|
|
download_url = DOWNLOAD_URL,
|
2002-07-06 01:47:31 +00:00
|
|
|
license = LICENSE,
|
2003-10-03 19:51:12 +00:00
|
|
|
platforms = PLATFORMS,
|
|
|
|
classifiers = filter(None, CLASSIFIERS.split("\n")),
|
|
|
|
keywords = KEYWORDS,
|
2003-11-12 21:34:20 +00:00
|
|
|
|
2003-07-02 23:13:10 +00:00
|
|
|
packages = ['wxPython',
|
|
|
|
'wxPython.lib',
|
|
|
|
'wxPython.lib.colourchooser',
|
|
|
|
'wxPython.lib.editor',
|
|
|
|
'wxPython.lib.mixins',
|
|
|
|
'wxPython.tools',
|
|
|
|
|
|
|
|
'wx',
|
2004-03-25 21:36:29 +00:00
|
|
|
'wx.build',
|
2003-07-02 23:13:10 +00:00
|
|
|
'wx.lib',
|
|
|
|
'wx.lib.colourchooser',
|
|
|
|
'wx.lib.editor',
|
2004-06-04 21:29:41 +00:00
|
|
|
'wx.lib.floatcanvas',
|
2004-04-22 22:46:10 +00:00
|
|
|
'wx.lib.masked',
|
2003-07-02 23:13:10 +00:00
|
|
|
'wx.lib.mixins',
|
2004-05-26 02:13:04 +00:00
|
|
|
'wx.lib.ogl',
|
2003-07-02 23:13:10 +00:00
|
|
|
'wx.py',
|
|
|
|
'wx.tools',
|
|
|
|
'wx.tools.XRCed',
|
2001-02-16 08:19:50 +00:00
|
|
|
],
|
|
|
|
|
2004-09-29 00:11:17 +00:00
|
|
|
extra_path = EXTRA_PATH,
|
|
|
|
|
2001-02-16 08:19:50 +00:00
|
|
|
ext_package = PKGDIR,
|
|
|
|
ext_modules = wxpExtensions,
|
2001-12-20 17:07:50 +00:00
|
|
|
|
2004-03-25 21:36:29 +00:00
|
|
|
options = { 'build' : { 'build_base' : BUILD_BASE },
|
|
|
|
},
|
2002-03-13 22:30:20 +00:00
|
|
|
|
2004-03-25 21:36:29 +00:00
|
|
|
scripts = SCRIPTS,
|
2003-03-25 06:35:27 +00:00
|
|
|
data_files = DATA_FILES,
|
2004-03-25 21:36:29 +00:00
|
|
|
headers = HEADERS,
|
2001-12-20 17:07:50 +00:00
|
|
|
|
2004-09-29 00:11:17 +00:00
|
|
|
# Override some of the default distutils command classes with my own
|
|
|
|
cmdclass = { 'install' : wx_install,
|
|
|
|
'install_data': wx_smart_install_data,
|
2004-03-25 21:36:29 +00:00
|
|
|
'install_headers': wx_install_headers,
|
|
|
|
'clean': wx_extra_clean,
|
|
|
|
},
|
2001-02-16 08:19:50 +00:00
|
|
|
)
|
2000-10-30 21:08:42 +00:00
|
|
|
|
|
|
|
|
2004-09-29 00:11:17 +00:00
|
|
|
if INSTALL_MULTIVERSION:
|
|
|
|
setup(name = 'wxPython-common',
|
|
|
|
version = VERSION,
|
|
|
|
description = DESCRIPTION,
|
|
|
|
long_description = LONG_DESCRIPTION,
|
|
|
|
author = AUTHOR,
|
|
|
|
author_email = AUTHOR_EMAIL,
|
|
|
|
url = URL,
|
|
|
|
download_url = DOWNLOAD_URL,
|
|
|
|
license = LICENSE,
|
|
|
|
platforms = PLATFORMS,
|
|
|
|
classifiers = filter(None, CLASSIFIERS.split("\n")),
|
|
|
|
keywords = KEYWORDS,
|
|
|
|
|
|
|
|
package_dir = { '': 'wxversion' },
|
|
|
|
py_modules = ['wxversion'],
|
|
|
|
|
|
|
|
data_files = [('', ['src/wx.pth'])],
|
|
|
|
|
|
|
|
options = { 'build' : { 'build_base' : BUILD_BASE },
|
|
|
|
},
|
|
|
|
|
|
|
|
cmdclass = { 'install_data': wx_smart_install_data,
|
|
|
|
},
|
|
|
|
)
|
|
|
|
|
2000-10-30 21:08:42 +00:00
|
|
|
#----------------------------------------------------------------------
|
|
|
|
#----------------------------------------------------------------------
|