From: Robin Dunn Date: Fri, 15 Oct 2004 00:47:56 +0000 (+0000) Subject: workarounds for old versions of distutils X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/41e8a69cdbd72036a6ed26c0859d4320a810f9ea workarounds for old versions of distutils git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/setup.py b/wxPython/setup.py index 832c8b83ca..d2fc1b688f 100755 --- a/wxPython/setup.py +++ b/wxPython/setup.py @@ -65,6 +65,20 @@ RELEASE_NUMBER = RELEASE_VERSION # for compatibility CLEANUP.append('wx/__version__.py') +#---------------------------------------------------------------------- +# 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} + + #---------------------------------------------------------------------- # Define the CORE extension module #---------------------------------------------------------------------- @@ -135,7 +149,7 @@ ext = Extension('_core_', ['src/helpers.cpp', extra_compile_args = cflags, extra_link_args = lflags, - depends = depends + **depends ) wxpExtensions.append(ext) @@ -172,7 +186,7 @@ ext = Extension('_gdi_', ['src/drawlist.cpp'] + swig_sources, libraries = libs, extra_compile_args = cflags, extra_link_args = lflags, - depends = depends + **depends ) wxpExtensions.append(ext) @@ -208,7 +222,7 @@ ext = Extension('_windows_', swig_sources, libraries = libs, extra_compile_args = cflags, extra_link_args = lflags, - depends = depends + **depends ) wxpExtensions.append(ext) @@ -250,7 +264,7 @@ ext = Extension('_controls_', swig_sources, libraries = libs, extra_compile_args = cflags, extra_link_args = lflags, - depends = depends + **depends ) wxpExtensions.append(ext) @@ -288,7 +302,7 @@ ext = Extension('_misc_', swig_sources, libraries = libs, extra_compile_args = cflags, extra_link_args = lflags, - depends = depends + **depends ) wxpExtensions.append(ext) @@ -307,7 +321,7 @@ ext = Extension('_calendar', swig_sources, libraries = libs, extra_compile_args = cflags, extra_link_args = lflags, - depends = depends + **depends ) wxpExtensions.append(ext) @@ -321,7 +335,7 @@ ext = Extension('_grid', swig_sources, libraries = libs, extra_compile_args = cflags, extra_link_args = lflags, - depends = depends + **depends ) wxpExtensions.append(ext) @@ -336,7 +350,7 @@ ext = Extension('_html', swig_sources, libraries = libs, extra_compile_args = cflags, extra_link_args = lflags, - depends = depends + **depends ) wxpExtensions.append(ext) @@ -351,7 +365,7 @@ ext = Extension('_wizard', swig_sources, libraries = libs, extra_compile_args = cflags, extra_link_args = lflags, - depends = depends + **depends ) wxpExtensions.append(ext) @@ -627,16 +641,6 @@ if BUILD_DLLWIDGET: -#---------------------------------------------------------------------- -# 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 - #---------------------------------------------------------------------- # Tools, scripts data files, etc.