diff --git a/buildtools/build_wxwidgets.py b/buildtools/build_wxwidgets.py index 7da3bd02..9d4c5681 100644 --- a/buildtools/build_wxwidgets.py +++ b/buildtools/build_wxwidgets.py @@ -280,10 +280,8 @@ def main(wxDir, args): configure_opts.append("--with-gtk=2") wxpy_configure_opts = [ - "--with-opengl", "--enable-sound", "--enable-graphics_ctx", - "--enable-mediactrl", "--enable-display", "--enable-geometry", "--enable-debug_flag", diff --git a/samples/doodle/tmp.ddl b/samples/doodle/tmp.ddl deleted file mode 100644 index ae6b3e98..00000000 Binary files a/samples/doodle/tmp.ddl and /dev/null differ diff --git a/setup.py b/setup.py index 63ce99b3..08142d34 100644 --- a/setup.py +++ b/setup.py @@ -89,9 +89,9 @@ Programming Language :: Python :: Implementation :: CPython Topic :: Software Development :: User Interfaces """ -DEPENDENCIES = [ 'six', - 'Pillow', - ] +DEPENDENCIES = [ line.strip() + for line in open('requirements.txt').readlines() + if not line.startswith('#')] isWindows = sys.platform.startswith('win') isDarwin = sys.platform == "darwin" diff --git a/wscript b/wscript index 89961a3a..058cdb3d 100644 --- a/wscript +++ b/wscript @@ -221,8 +221,12 @@ def configure(conf): uselib_store='WXHTML', mandatory=True, msg='Finding libs for WXHTML') + if cfg.checkSetup(wxConfigDir, 'wxUSE_GLCANVAS'): + gl_libs = '--libs gl,core,net' + else: + gl_libs = '--libs core,net' conf.check_cfg(path=conf.options.wx_config, package='', - args='--cxxflags --libs gl,core,net' + rpath, + args='--cxxflags ' + gl_libs + rpath, uselib_store='WXGL', mandatory=True, msg='Finding libs for WXGL') @@ -257,8 +261,12 @@ def configure(conf): uselib_store='WXRICHTEXT', mandatory=True, msg='Finding libs for WXRICHTEXT') + if cfg.checkSetup(wxConfigDir, 'wxUSE_MEDIACTRL'): + mc_libs = '--libs media,core,net' + else: + mc_libs = '--libs core,net' conf.check_cfg(path=conf.options.wx_config, package='', - args='--cxxflags --libs media,core,net' + rpath, + args='--cxxflags ' + mc_libs + rpath, uselib_store='WXMEDIA', mandatory=True, msg='Finding libs for WXMEDIA')