#!/usr/bin/env python
#----------------------------------------------------------------------
-import sys, os, glob, fnmatch
+import sys, os, glob, fnmatch, commands
from distutils.core import setup, Extension
from distutils.file_util import copy_file
from distutils.dir_util import mkpath
AUTHOR = "Robin Dunn"
AUTHOR_EMAIL = "Robin Dunn <robin@alldunn.com>"
URL = "http://wxPython.org/"
-LICENSE = "wxWindows (LGPL derivative)"
+DOWNLOAD_URL = "http://wxPython.org/download.php"
+LICENSE = "wxWindows Library License (LGPL derivative)"
+PLATFORMS = "WIN32,OSX,POSIX"
+KEYWORDS = "GUI,wx,wxWindows,cross-platform"
+
LONG_DESCRIPTION = """\
wxPython is a GUI toolkit for Python that is a wrapper around the
wxWindows C++ GUI library. wxPython provides a large variety of
on.
"""
+CLASSIFIERS = """\
+Development Status :: 6 - Mature
+Environment :: MacOS X :: Carbon
+Environment :: Win32 (MS Windows)
+Environment :: X11 Applications :: GTK
+Intended Audience :: Developers
+License :: OSI Approved
+Operating System :: MacOS :: MacOS X
+Operating System :: Microsoft :: Windows :: Windows 95/98/2000
+Operating System :: POSIX
+Programming Language :: Python
+Topic :: Software Development :: User Interfaces
+"""
+
+## License :: OSI Approved :: wxWindows Library Licence
+
# Config values below this point can be reset on the setup.py command line.
if debug:
cflags.append('-g')
cflags.append('-O0')
+ else:
+ cflags.append('-O3')
lflags = os.popen(WX_CONFIG + ' --libs', 'r').read()[:-1]
lflags = lflags.split()
cflags += portcfg.split()
- # Some distros (e.g. Mandrake) put libGLU in /usr/X11R6/lib, but
- # wx-config doesn't output that for some reason. For now, just
- # add it unconditionally but we should really check if the lib is
- # really found there or wx-config should be fixed.
- libdirs.append("/usr/X11R6/lib")
+ # If you get unresolved symbol errors on Solaris and are using gcc, then
+ # uncomment this block to add the right flags to the link step and build
+ # again.
+ ## if os.uname()[0] == 'SunOS':
+ ## libs.append('gcc')
+ ## libdirs.append(commands.getoutput("gcc -print-search-dirs | grep '^install' | awk '{print $2}'")[:-1])
# Move the various -I, -D, etc. flags we got from the *config scripts
author = AUTHOR,
author_email = AUTHOR_EMAIL,
url = URL,
+ download_url = DOWNLOAD_URL,
license = LICENSE,
-
+ platforms = PLATFORMS,
+ classifiers = filter(None, CLASSIFIERS.split("\n")),
+ keywords = KEYWORDS,
+
packages = ['wxPython',
'wxPython.lib',
'wxPython.lib.colourchooser',