Change code in setup.py for parsing LDFLAGS and CPPFLAGS to use optparse

instead of getopt.  Required making use of gettext._ as optional (optparse
changed OK'ed by Greg Ward in private email).
This commit is contained in:
Brett Cannon 2004-12-07 03:25:18 +00:00
parent 516592f4ff
commit 84667c063a
3 changed files with 11 additions and 7 deletions

View file

@ -69,7 +69,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import sys, os
import types
import textwrap
from gettext import gettext as _
try:
from gettext import gettext as _
except ImportError:
_ = lambda arg: arg
def _repr(self):
return "<%s at 0x%x: %s>" % (self.__class__.__name__, id(self), self)