From: Robin Dunn Date: Sun, 25 Aug 2002 05:59:23 +0000 (+0000) Subject: Some build/distrib tweaks X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ba201fa43114e4f683a22d814fa215b39c1eaa3a?ds=sidebyside Some build/distrib tweaks git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/distrib/makerpm b/wxPython/distrib/makerpm index c88d207a9c..ccb1f5bb9e 100755 --- a/wxPython/distrib/makerpm +++ b/wxPython/distrib/makerpm @@ -150,6 +150,7 @@ if [ -z "${skipcvs}" ]; then # rm -rf src/motif # rm -rf src/os2 rm -rf wxPython/wxSWIG + rm -rf wxPython/tests popd > /dev/null popd > /dev/null diff --git a/wxPython/distrib/wxPythonFull.spec.in b/wxPython/distrib/wxPythonFull.spec.in index fd59fa9fc9..5864b5a0fd 100644 --- a/wxPython/distrib/wxPythonFull.spec.in +++ b/wxPython/distrib/wxPythonFull.spec.in @@ -38,7 +38,7 @@ Release: %{release} Source0: %{tarname}-%{version}.tar.gz License: wxWindows Library Licence, Version 3 URL: http://wxPython.org/ -Packager: Robin Dunn +Packager: Robin Dunn Group: Development/Python BuildRoot: %{_tmppath}/%{name}-buildroot Prefix: %{pref} @@ -153,7 +153,7 @@ cd wxPython #---------------------------------------------------------------- %clean -#[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT #---------------------------------------------------------------- diff --git a/wxPython/setup.py b/wxPython/setup.py index d1f624e9a8..31c02aa5c0 100755 --- a/wxPython/setup.py +++ b/wxPython/setup.py @@ -311,6 +311,9 @@ elif os.name == 'posix' and sys.platform[:6] == "darwin": cflags = string.split(cflags) if UNDEF_NDEBUG: cflags.append('-UNDEBUG') + if debug: + cflags.append('-g') + cflags.append('-O0') lflags = os.popen(WX_CONFIG + ' --libs', 'r').read()[:-1] lflags = string.split(lflags) @@ -338,6 +341,9 @@ elif os.name == 'posix': cflags = string.split(cflags) if UNDEF_NDEBUG: cflags.append('-UNDEBUG') + if debug: + cflags.append('-g') + cflags.append('-O0') lflags = os.popen(WX_CONFIG + ' --libs', 'r').read()[:-1] lflags = string.split(lflags)