From ffa0f3dd9b8e8d20d7c344f319e36f5904767f88 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 4 Apr 2003 17:59:07 +0000 Subject: [PATCH] Added a new "wx" package that will dynamically import from the wxPython package and rename wxFooBar --> FooBar. That means that people imports without "import *" and can use names like wx.Frame instead of wx.wxFrame. This is phase 1 of a full transition to the new namespace. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/CHANGES.txt | 7 +++++++ wxPython/setup.py | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/wxPython/CHANGES.txt b/wxPython/CHANGES.txt index de8d3c4081..e75d7ebbea 100644 --- a/wxPython/CHANGES.txt +++ b/wxPython/CHANGES.txt @@ -18,6 +18,13 @@ Made the version number information more robust and uh, informative. Also added asserts to check that the major.minor versions of wxPython and wxWindows match. +Added the new wx "renamer" package that will dynamically import from +the wxPython package and rename wxFooBar --> FooBar. That means that +people can do imports without "import *" and can use names like +wx.Frame instead of wx.wxFrame. This is phase 1 of a full transition +to the new namespace. + + 2.4.0.7 diff --git a/wxPython/setup.py b/wxPython/setup.py index 6a01f1d6e2..0b216ee21c 100755 --- a/wxPython/setup.py +++ b/wxPython/setup.py @@ -828,15 +828,19 @@ if BUILD_STC: '%s/scintilla/src/UniConversion.cxx' % STCLOC, '%s/scintilla/src/ViewStyle.cxx' % STCLOC, '%s/scintilla/src/WindowAccessor.cxx' % STCLOC, + '%s/scintilla/src/XPM.cxx' % STCLOC, '%s/scintilla/src/LexAda.cxx' % STCLOC, + '%s/scintilla/src/LexAsm.cxx' % STCLOC, '%s/scintilla/src/LexAVE.cxx' % STCLOC, '%s/scintilla/src/LexBaan.cxx' % STCLOC, '%s/scintilla/src/LexBullant.cxx' % STCLOC, '%s/scintilla/src/LexCPP.cxx' % STCLOC, '%s/scintilla/src/LexConf.cxx' % STCLOC, '%s/scintilla/src/LexCrontab.cxx' % STCLOC, + '%s/scintilla/src/LexCSS.cxx' % STCLOC, '%s/scintilla/src/LexEiffel.cxx' % STCLOC, + '%s/scintilla/src/LexFortran.cxx' % STCLOC, '%s/scintilla/src/LexHTML.cxx' % STCLOC, '%s/scintilla/src/LexLisp.cxx' % STCLOC, '%s/scintilla/src/LexLua.cxx' % STCLOC, @@ -1204,6 +1208,8 @@ DATA_FILES.append( ('wxPython/lib/PyCrust', glob.glob('wxPython/lib/PyCrust/*.tx glob.glob('wxPython/lib/PyCrust/*.ico'))) +# TODO: get datafiles under the new wx pacakge + #---------------------------------------------------------------------- # Do the Setup/Build/Install/Whatever #---------------------------------------------------------------------- @@ -1228,6 +1234,19 @@ if __name__ == "__main__": PKGDIR+'.lib.PyCrust.wxd', PKGDIR+'.tools', PKGDIR+'.tools.XRCed', + + 'wx', + 'wx.examples', + 'wx.examples.basic', + 'wx.examples.hello', + 'wx.lib', + 'wx.lib.PyCrust', + #'wx.lib.PyCrust.wxd', ??? + 'wx.lib.colourchooser', + 'wx.lib.editor', + 'wx.lib.mixins', + #'wx.tools', ??? + #'wx.tools.XRCed', ??? ], ext_package = PKGDIR,