]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/setup.py
6a9954967bf7080354d08973726824eb4aa7475c
2 #----------------------------------------------------------------------
5 from distutils
.core
import setup
, Extension
6 from distutils
.file_util
import copy_file
7 from distutils
.dir_util
import mkpath
8 from distutils
.dep_util
import newer
10 from my_distutils
import run_swig
, contrib_copy_tree
12 #----------------------------------------------------------------------
13 # flags and values that affect this script
14 #----------------------------------------------------------------------
17 DESCRIPTION
= "Cross platform GUI toolkit for Python"
19 AUTHOR_EMAIL
= "Robin Dunn <robin@alldunn.com>"
20 URL
= "http://wxPython.org/"
21 LICENCE
= "wxWindows (LGPL derivative)"
22 LONG_DESCRIPTION
= """\
23 wxPython is a GUI toolkit for Python that is a wrapper around the
24 wxWindows C++ GUI library. wxPython provides a large variety of
25 window types and controls, all implemented with a native look and
26 feel (and native runtime speed) on the platforms it is supported
31 BUILD_GLCANVAS
= 1 # If true, build the contrib/glcanvas extension module
32 BUILD_OGL
= 1 # If true, build the contrib/ogl extension module
33 BUILD_STC
= 1 # If true, build the contrib/stc extension module
34 BUILD_IEWIN
= 0 # Internet Explorer wrapper (experimental)
35 BUILD_XRC
= 1 # XML based resource system
38 CORE_ONLY
= 0 # if true, don't build any of the above
39 GL_ONLY
= 0 # Only used when making the -gl RPM. See the "b" script
40 # for the ugly details
42 USE_SWIG
= 0 # Should we actually execute SWIG, or just use the
43 # files already in the distribution?
45 IN_CVS_TREE
= 0 # Set to true if building in a full wxWindows CVS
46 # tree, otherwise will assume all needed files are
47 # available in the wxPython source distribution
49 WX_CONFIG
= "wx-config" # Usually you shouldn't need to touch this,
50 # but you can set it to pass an alternate
51 # version of wx-config or alternate flags,
52 # eg. as required by the .deb in-tree build.
54 # Some MSW build settings
56 FINAL
= 1 # Mirrors use of same flag in wx makefiles,
57 # (0 or 1 only) should probably find a way to
60 HYBRID
= 0 # If set and not debug or FINAL, then build a
61 # hybrid extension that can be used by the
62 # non-debug version of python, but contains
63 # debugging symbols for wxWindows and wxPython.
64 # wxWindows must have been built with /MD, not /MDd
65 # (using FINAL=hybrid will do it.)
67 WXDLLVER
= '232' # Version part of DLL name
70 #----------------------------------------------------------------------
73 if __name__
== "__main__":
77 path
= apply(os
.path
.join
, args
)
78 return os
.path
.normpath(path
)
89 #----------------------------------------------------------------------
91 #----------------------------------------------------------------------
96 force
= '--force' in sys
.argv
or '-f' in sys
.argv
97 debug
= '--debug' in sys
.argv
or '-g' in sys
.argv
99 bcpp_compiling
= '-c' in sys
.argv
and 'my_bcpp' in sys
.argv
# Bad heuristic
102 msg("Compiling wxPython by Borland C/C++ Compiler")
104 WXBCPPLIBVER
= string
.replace(WXDLLVER
,"_","")
105 # Version part of BCPP build LIBRARY name
106 WXDLLVER
="" # no dll ver path avaible
109 #----------------------------------------------------------------------
110 # Check for build flags on the command line
111 #----------------------------------------------------------------------
113 for flag
in ['BUILD_GLCANVAS', 'BUILD_OGL', 'BUILD_STC', 'BUILD_XRC',
114 'CORE_ONLY', 'USE_SWIG', 'IN_CVS_TREE',
115 'FINAL', 'HYBRID', ]:
116 for x
in range(len(sys
.argv
)):
117 if string
.find(sys
.argv
[x
], flag
) == 0:
118 pos
= string
.find(sys
.argv
[x
], '=') + 1
120 vars()[flag
] = eval(sys
.argv
[x
][pos
:])
123 for option
in ['WX_CONFIG', 'WXDLLVER', ]:
124 for x
in range(len(sys
.argv
)):
125 if string
.find(sys
.argv
[x
], option
) == 0:
126 pos
= string
.find(sys
.argv
[x
], '=') + 1
128 vars()[option
] = sys
.argv
[x
][pos
:]
131 sys
.argv
= filter(None, sys
.argv
)
140 #----------------------------------------------------------------------
141 # Setup some platform specific stuff
142 #----------------------------------------------------------------------
145 # Set compile flags and such for MSVC. These values are derived
146 # from the wxWindows makefiles for MSVC, others will probably
148 WXDIR
= os
.environ
['WXWIN']
160 opj(WXDIR
, 'lib', 'mswdll' + libFlag()),
161 opj(WXDIR
, 'include'),
164 defines
= [ ('WIN32', None), # Some of these are no longer
165 ('__WIN32__', None), # necessary. Anybody know which?
167 ('__WINDOWS__', None),
168 ('WINVER', '0x0400'),
175 ('SWIG_GLOBAL', None),
176 ('HAVE_CONFIG_H', None),
177 ('WXP_USE_THREAD', '1'),
180 if bcpp_compiling
: # overwrite it
183 ('WINVER', '0x0400'),
188 ('SWIG_GLOBAL', None),
189 ('HAVE_CONFIG_H', None),
190 ('WXP_USE_THREAD', '1'),
192 ('WXUSE_DEFINE','1'),
197 if not FINAL
or HYBRID
:
198 defines
.append( ('__WXDEBUG__', None) )
200 libdirs
= [opj(WXDIR
, 'lib'), 'build\\ilib']
201 wxdll
= 'wxmsw' + WXDLLVER
+ libFlag()
205 libs
= ['wx'+WXBCPPLIBVER
]
207 libs
= libs
+ ['kernel32', 'user32', 'gdi32', 'comdlg32',
208 'winspool', 'winmm', 'shell32', 'oldnames', 'comctl32',
209 'ctl3d32', 'odbc32', 'ole32', 'oleaut32', 'uuid', 'rpcrt4',
210 'advapi32', 'wsock32']
213 cflags
= [] #['/GX-'] # workaround for internal compiler error in MSVC on some machines
217 if bcpp_compiling
: # overwrite it
218 cflags
= ['-5', '-VF', ### To supplort MSVC spurious semicolons in the class scope
219 ### else, all semicolons at the end of all DECLARE_...CALLBACK... macros must be eliminated
220 '-Hc', '-H=' + opj(WXDIR
, '\src\msw\wx32.csm'),
221 '@' + opj(WXDIR
, '\src\msw\wxwin32.cfg')
225 if not FINAL
and HYBRID
and not bcpp_compiling
:
226 cflags
= cflags
+ ['/Od', '/Z7']
227 lflags
= ['/DEBUG', ]
229 elif bcpp_compiling
and not FINAL
:
230 cflags
= cflags
+ ['/Od', '/v', '/y']
231 lflags
= lflags
+ ['/v', ] ## '/PDB:NONE']
235 elif os
.name
== 'posix':
236 # Set flags for Unix type platforms
238 WXDIR
= '..' # assumes IN_CVS_TREE
239 WXPLAT
= '__WXGTK__' # and assumes GTK...
240 GENDIR
= 'gtk' # Need to allow for Motif eventually too
243 defines
= [('SWIG_GLOBAL', None),
244 ('HAVE_CONFIG_H', None),
245 ('WXP_USE_THREAD', '1'),
250 cflags
= os
.popen(WX_CONFIG
+ ' --cflags', 'r').read()[:-1] + ' ' + \
251 os
.popen('gtk-config --cflags', 'r').read()[:-1]
252 cflags
= string
.split(cflags
)
254 lflags
= os
.popen(WX_CONFIG
+ ' --libs', 'r').read()[:-1]
255 lflags
= string
.split(lflags
)
259 raise 'Sorry Charlie...'
262 #----------------------------------------------------------------------
263 # Check if the version file needs updated
264 #----------------------------------------------------------------------
266 if IN_CVS_TREE
and newer('setup.py', 'src/__version__.py'):
267 open('src/__version__.py', 'w').write("ver = '%s'\n" % VERSION
)
271 #----------------------------------------------------------------------
273 #----------------------------------------------------------------------
276 swig_args
= ['-c++', '-shadow', '-python', '-keyword',
279 #'-docstring', '-Sbefore',
280 '-I./src', '-D'+WXPLAT
]
281 swig_deps
= ['src/my_typemaps.i']
284 #----------------------------------------------------------------------
285 # Define the CORE extension module
286 #----------------------------------------------------------------------
289 msg('Preparing CORE...')
290 swig_files
= [ 'wx.i', 'windows.i', 'windows2.i', 'windows3.i', 'events.i',
291 'misc.i', 'misc2.i', 'gdi.i', 'mdi.i', 'controls.i',
292 'controls2.i', 'cmndlgs.i', 'stattool.i', 'frames.i', 'image.i',
293 'printfw.i', 'sizers.i', 'clip_dnd.i',
294 'filesys.i', 'streams.i',
295 ##'grid.i', 'html.i', 'htmlhelp.i', 'calendar.i', 'utils.i',
298 swig_sources
= run_swig(swig_files
, 'src', GENDIR
, PKGDIR
,
299 USE_SWIG
, swig_force
, swig_args
, swig_deps
)
301 copy_file('src/__init__.py', PKGDIR
, update
=1, verbose
=0)
302 copy_file('src/__version__.py', PKGDIR
, update
=1, verbose
=0)
305 if IN_CVS_TREE
: # update the licence files
307 for file in ['preamble.txt', 'licence.txt', 'licendoc.txt', 'lgpl.txt']:
308 copy_file(opj(WXDIR
, 'docs', file), opj('licence',file), update
=1, verbose
=0)
312 rc_file
= ['src/wxc.rc']
317 ext
= Extension('wxc', ['src/helpers.cpp',
319 ] + rc_file
+ swig_sources
,
321 include_dirs
= includes
,
322 define_macros
= defines
,
324 library_dirs
= libdirs
,
327 extra_compile_args
= cflags
,
328 extra_link_args
= lflags
,
330 wxpExtensions
.append(ext
)
333 # Extension for the grid module
334 swig_sources
= run_swig(['grid.i'], 'src', GENDIR
, PKGDIR
,
335 USE_SWIG
, swig_force
, swig_args
, swig_deps
)
336 ext
= Extension('gridc', swig_sources
,
337 include_dirs
= includes
,
338 define_macros
= defines
,
339 library_dirs
= libdirs
,
341 extra_compile_args
= cflags
,
342 extra_link_args
= lflags
,
344 wxpExtensions
.append(ext
)
347 # Extension for the html modules
348 swig_sources
= run_swig(['html.i', 'htmlhelp.i'], 'src', GENDIR
, PKGDIR
,
349 USE_SWIG
, swig_force
, swig_args
, swig_deps
)
350 ext
= Extension('htmlc', swig_sources
,
351 include_dirs
= includes
,
352 define_macros
= defines
,
353 library_dirs
= libdirs
,
355 extra_compile_args
= cflags
,
356 extra_link_args
= lflags
,
358 wxpExtensions
.append(ext
)
361 # Extension for the utils module
362 swig_sources
= run_swig(['utils.i'], 'src', GENDIR
, PKGDIR
,
363 USE_SWIG
, swig_force
, swig_args
, swig_deps
)
364 ext
= Extension('utilsc', swig_sources
,
365 include_dirs
= includes
,
366 define_macros
= defines
,
367 library_dirs
= libdirs
,
369 extra_compile_args
= cflags
,
370 extra_link_args
= lflags
,
372 wxpExtensions
.append(ext
)
375 # Extension for the calendar module
376 swig_sources
= run_swig(['calendar.i'], 'src', GENDIR
, PKGDIR
,
377 USE_SWIG
, swig_force
, swig_args
, swig_deps
)
378 ext
= Extension('calendarc', swig_sources
,
379 include_dirs
= includes
,
380 define_macros
= defines
,
381 library_dirs
= libdirs
,
383 extra_compile_args
= cflags
,
384 extra_link_args
= lflags
,
386 wxpExtensions
.append(ext
)
389 # Extension for the help module
390 swig_sources
= run_swig(['help.i'], 'src', GENDIR
, PKGDIR
,
391 USE_SWIG
, swig_force
, swig_args
, swig_deps
)
392 ext
= Extension('helpc', swig_sources
,
393 include_dirs
= includes
,
394 define_macros
= defines
,
395 library_dirs
= libdirs
,
397 extra_compile_args
= cflags
,
398 extra_link_args
= lflags
,
400 wxpExtensions
.append(ext
)
403 #----------------------------------------------------------------------
404 # Define the GLCanvas extension module
405 #----------------------------------------------------------------------
407 CTRB_SRC
= opj(WXDIR
, 'contrib/src')
408 CTRB_INC
= opj(WXDIR
, 'contrib/include/wx')
410 if BUILD_GLCANVAS
or GL_ONLY
:
411 msg('Preparing GLCANVAS...')
412 location
= 'contrib/glcanvas'
413 swig_files
= ['glcanvas.i']
416 swig_sources
= run_swig(swig_files
, location
, GENDIR
, PKGDIR
,
417 USE_SWIG
, swig_force
, swig_args
)
420 if os
.name
== 'posix':
421 gl_config
= os
.popen(WX_CONFIG
+ ' --gl-libs', 'r').read()[:-1]
422 gl_lflags
= string
.split(gl_config
) + lflags
425 other_sources
= [opj(location
, 'msw/myglcanvas.cpp')]
426 gl_libs
= libs
+ ['opengl32', 'glu32']
429 ext
= Extension('glcanvasc',
430 swig_sources
+ other_sources
,
432 include_dirs
= includes
,
433 define_macros
= defines
,
435 library_dirs
= libdirs
,
438 extra_compile_args
= cflags
,
439 extra_link_args
= gl_lflags
,
442 wxpExtensions
.append(ext
)
445 #----------------------------------------------------------------------
446 # Define the OGL extension module
447 #----------------------------------------------------------------------
449 if not GL_ONLY
and BUILD_OGL
:
450 msg('Preparing OGL...')
451 location
= 'contrib/ogl'
452 OGLLOC
= opj(location
, 'contrib/src/ogl')
453 OGLINC
= opj(location
, 'contrib/include')
455 swig_files
= ['ogl.i', 'oglbasic.i', 'oglshapes.i', 'oglshapes2.i',
458 swig_sources
= run_swig(swig_files
, location
, '', PKGDIR
,
459 USE_SWIG
, swig_force
, swig_args
)
462 # make sure local copy of contrib files are up to date
463 contrib_copy_tree(opj(CTRB_INC
, 'ogl'), opj(OGLINC
, 'wx/ogl'))
464 contrib_copy_tree(opj(CTRB_SRC
, 'ogl'), OGLLOC
)
466 ext
= Extension('oglc', ['%s/basic.cpp' % OGLLOC
,
467 '%s/bmpshape.cpp' % OGLLOC
,
468 '%s/composit.cpp' % OGLLOC
,
469 '%s/divided.cpp' % OGLLOC
,
470 '%s/lines.cpp' % OGLLOC
,
471 '%s/misc.cpp' % OGLLOC
,
472 '%s/basic2.cpp' % OGLLOC
,
473 '%s/canvas.cpp' % OGLLOC
,
474 '%s/constrnt.cpp' % OGLLOC
,
475 '%s/drawn.cpp' % OGLLOC
,
476 '%s/mfutils.cpp' % OGLLOC
,
477 '%s/ogldiag.cpp' % OGLLOC
,
480 include_dirs
= [OGLINC
] + includes
,
481 define_macros
= defines
,
483 library_dirs
= libdirs
,
486 extra_compile_args
= cflags
,
487 extra_link_args
= lflags
,
490 wxpExtensions
.append(ext
)
494 #----------------------------------------------------------------------
495 # Define the STC extension module
496 #----------------------------------------------------------------------
498 if not GL_ONLY
and BUILD_STC
:
499 msg('Preparing STC...')
500 location
= 'contrib/stc'
501 STCLOC
= opj(location
, 'contrib/src/stc')
502 STCINC
= opj(location
, 'contrib/include')
503 STC_H
= opj(location
, 'contrib/include/wx/stc')
506 # Check if gen_iface needs to be run for the wxSTC sources
507 if (newer(opj(CTRB_SRC
, 'stc/stc.h.in'), opj(CTRB_INC
, 'stc/stc.h' )) or
508 newer(opj(CTRB_SRC
, 'stc/stc.cpp.in'), opj(CTRB_SRC
, 'stc/stc.cpp')) or
509 newer(opj(CTRB_SRC
, 'stc/gen_iface.py'), opj(CTRB_SRC
, 'stc/stc.cpp'))):
511 msg('Running gen_iface.py, regenerating stc.h and stc.cpp...')
513 os
.chdir(opj(CTRB_SRC
, 'stc'))
519 # make sure local copy of contrib files are up to date
520 contrib_copy_tree(opj(CTRB_INC
, 'stc'), opj(STCINC
, 'wx/stc'))
521 contrib_copy_tree(opj(CTRB_SRC
, 'stc'), STCLOC
)
525 swig_files
= ['stc_.i']
526 swig_sources
= run_swig(swig_files
, location
, '', PKGDIR
,
527 USE_SWIG
, swig_force
,
528 swig_args
+ ['-I'+STC_H
, '-I'+location
],
529 [opj(STC_H
, 'stc.h')])
531 # copy a project specific py module to the main package dir
532 copy_file(opj(location
, 'stc.py'), PKGDIR
, update
=1, verbose
=0)
534 # add some include dirs to the standard set
535 stc_includes
= includes
[:]
536 stc_includes
.append('%s/scintilla/include' % STCLOC
)
537 stc_includes
.append('%s/scintilla/src' % STCLOC
)
538 stc_includes
.append(STCINC
)
540 # and some macro definitions
541 stc_defines
= defines
[:]
542 stc_defines
.append( ('__WX__', None) )
543 stc_defines
.append( ('SCI_LEXER', None) )
546 ext
= Extension('stc_c',
547 ['%s/scintilla/src/AutoComplete.cxx' % STCLOC
,
548 '%s/scintilla/src/CallTip.cxx' % STCLOC
,
549 '%s/scintilla/src/CellBuffer.cxx' % STCLOC
,
550 '%s/scintilla/src/ContractionState.cxx' % STCLOC
,
551 '%s/scintilla/src/Document.cxx' % STCLOC
,
552 '%s/scintilla/src/DocumentAccessor.cxx' % STCLOC
,
553 '%s/scintilla/src/Editor.cxx' % STCLOC
,
554 '%s/scintilla/src/Indicator.cxx' % STCLOC
,
555 '%s/scintilla/src/KeyMap.cxx' % STCLOC
,
556 '%s/scintilla/src/KeyWords.cxx' % STCLOC
,
557 '%s/scintilla/src/LineMarker.cxx' % STCLOC
,
558 '%s/scintilla/src/PropSet.cxx' % STCLOC
,
559 '%s/scintilla/src/RESearch.cxx' % STCLOC
,
560 '%s/scintilla/src/ScintillaBase.cxx' % STCLOC
,
561 '%s/scintilla/src/Style.cxx' % STCLOC
,
562 '%s/scintilla/src/StyleContext.cxx' % STCLOC
,
563 '%s/scintilla/src/UniConversion.cxx' % STCLOC
,
564 '%s/scintilla/src/ViewStyle.cxx' % STCLOC
,
565 '%s/scintilla/src/WindowAccessor.cxx' % STCLOC
,
567 '%s/scintilla/src/LexAda.cxx' % STCLOC
,
568 '%s/scintilla/src/LexAVE.cxx' % STCLOC
,
569 '%s/scintilla/src/LexCPP.cxx' % STCLOC
,
570 '%s/scintilla/src/LexConf.cxx' % STCLOC
,
571 '%s/scintilla/src/LexCrontab.cxx' % STCLOC
,
572 '%s/scintilla/src/LexEiffel.cxx' % STCLOC
,
573 '%s/scintilla/src/LexHTML.cxx' % STCLOC
,
574 '%s/scintilla/src/LexLisp.cxx' % STCLOC
,
575 '%s/scintilla/src/LexLua.cxx' % STCLOC
,
576 '%s/scintilla/src/LexOthers.cxx' % STCLOC
,
577 '%s/scintilla/src/LexPascal.cxx' % STCLOC
,
578 '%s/scintilla/src/LexPerl.cxx' % STCLOC
,
579 '%s/scintilla/src/LexPython.cxx' % STCLOC
,
580 '%s/scintilla/src/LexRuby.cxx' % STCLOC
,
581 '%s/scintilla/src/LexSQL.cxx' % STCLOC
,
582 '%s/scintilla/src/LexVB.cxx' % STCLOC
,
584 '%s/PlatWX.cpp' % STCLOC
,
585 '%s/ScintillaWX.cpp' % STCLOC
,
586 '%s/stc.cpp' % STCLOC
,
589 include_dirs
= stc_includes
,
590 define_macros
= stc_defines
,
592 library_dirs
= libdirs
,
595 extra_compile_args
= cflags
,
596 extra_link_args
= lflags
,
599 wxpExtensions
.append(ext
)
603 #----------------------------------------------------------------------
604 # Define the IEWIN extension module (experimental)
605 #----------------------------------------------------------------------
607 if not GL_ONLY
and BUILD_IEWIN
:
608 msg('Preparing IEWIN...')
609 location
= 'contrib/iewin'
611 swig_files
= ['iewin.i', ]
613 swig_sources
= run_swig(swig_files
, location
, '', PKGDIR
,
614 USE_SWIG
, swig_force
, swig_args
)
617 ext
= Extension('iewinc', ['%s/IEHtmlWin.cpp' % location
,
620 include_dirs
= includes
,
621 define_macros
= defines
,
623 library_dirs
= libdirs
,
626 extra_compile_args
= cflags
,
627 extra_link_args
= lflags
,
630 wxpExtensions
.append(ext
)
633 #----------------------------------------------------------------------
634 # Define the XRC extension module
635 #----------------------------------------------------------------------
637 if not GL_ONLY
and BUILD_XRC
:
638 msg('Preparing XRC...')
639 location
= 'contrib/xrc'
640 XMLLOC
= opj(location
, 'contrib/src/xrc')
641 XMLINC
= opj(location
, 'contrib/include')
643 swig_files
= ['xrc.i']
645 swig_sources
= run_swig(swig_files
, location
, '', PKGDIR
,
646 USE_SWIG
, swig_force
, swig_args
)
648 xmlres_includes
= includes
[:]
649 xmlres_includes
.append('%s/expat/xmlparse' % XMLLOC
)
650 xmlres_includes
.append('%s/expat/xmltok' % XMLLOC
)
651 xmlres_includes
.append(XMLINC
)
654 # make sure local copy of contrib files are up to date
656 contrib_copy_tree(opj(CTRB_INC
, 'xrc'), opj(XMLINC
, 'wx/xrc'))
657 contrib_copy_tree(opj(CTRB_SRC
, 'xrc'), XMLLOC
)
659 ext
= Extension('xrcc', ['%s/expat/xmlparse/xmlparse.c' % XMLLOC
,
660 '%s/expat/xmltok/xmlrole.c' % XMLLOC
,
661 '%s/expat/xmltok/xmltok.c' % XMLLOC
,
663 '%s/xh_bmp.cpp' % XMLLOC
,
664 '%s/xh_bmpbt.cpp' % XMLLOC
,
665 '%s/xh_bttn.cpp' % XMLLOC
,
666 '%s/xh_cald.cpp' % XMLLOC
,
667 '%s/xh_chckb.cpp' % XMLLOC
,
669 '%s/xh_chckl.cpp' % XMLLOC
,
670 '%s/xh_choic.cpp' % XMLLOC
,
671 '%s/xh_combo.cpp' % XMLLOC
,
672 '%s/xh_dlg.cpp' % XMLLOC
,
673 '%s/xh_frame.cpp' % XMLLOC
,
675 '%s/xh_gauge.cpp' % XMLLOC
,
676 '%s/xh_html.cpp' % XMLLOC
,
677 '%s/xh_listb.cpp' % XMLLOC
,
678 '%s/xh_listc.cpp' % XMLLOC
,
679 '%s/xh_menu.cpp' % XMLLOC
,
681 '%s/xh_notbk.cpp' % XMLLOC
,
682 '%s/xh_panel.cpp' % XMLLOC
,
683 '%s/xh_radbt.cpp' % XMLLOC
,
684 '%s/xh_radbx.cpp' % XMLLOC
,
685 '%s/xh_scrol.cpp' % XMLLOC
,
687 '%s/xh_sizer.cpp' % XMLLOC
,
688 '%s/xh_slidr.cpp' % XMLLOC
,
689 '%s/xh_spin.cpp' % XMLLOC
,
690 '%s/xh_stbmp.cpp' % XMLLOC
,
691 '%s/xh_stbox.cpp' % XMLLOC
,
693 '%s/xh_stlin.cpp' % XMLLOC
,
694 '%s/xh_sttxt.cpp' % XMLLOC
,
695 '%s/xh_text.cpp' % XMLLOC
,
696 '%s/xh_toolb.cpp' % XMLLOC
,
697 '%s/xh_tree.cpp' % XMLLOC
,
699 '%s/xh_unkwn.cpp' % XMLLOC
,
700 '%s/xml.cpp' % XMLLOC
,
701 '%s/xmlbin.cpp' % XMLLOC
,
702 '%s/xmlbinz.cpp' % XMLLOC
,
703 '%s/xmlexpat.cpp' % XMLLOC
,
705 '%s/xmlres.cpp' % XMLLOC
,
706 '%s/xmlrsall.cpp' % XMLLOC
,
707 '%s/xmlwrite.cpp' % XMLLOC
,
711 include_dirs
= xmlres_includes
,
712 define_macros
= defines
,
714 library_dirs
= libdirs
,
717 extra_compile_args
= cflags
,
718 extra_link_args
= lflags
,
721 wxpExtensions
.append(ext
)
726 #----------------------------------------------------------------------
727 # Do the Setup/Build/Install/Whatever
728 #----------------------------------------------------------------------
730 if __name__
== "__main__":
734 description
= DESCRIPTION
,
735 long_description
= LONG_DESCRIPTION
,
737 author_email
= AUTHOR_EMAIL
,
743 PKGDIR
+'.lib.editor',
747 ext_package
= PKGDIR
,
748 ext_modules
= wxpExtensions
,
753 setup(name
= "wxPython-gl",
755 description
= "wxGLCanvas class for wxPython",
757 author_email
= AUTHOR_EMAIL
,
761 py_modules
= [ "wxPython.glcanvas" ],
763 ext_package
= PKGDIR
,
764 ext_modules
= wxpExtensions
,
770 #----------------------------------------------------------------------
771 #----------------------------------------------------------------------