mirror of
https://github.com/python/cpython.git
synced 2025-10-08 08:01:55 +00:00
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:
parent
516592f4ff
commit
84667c063a
3 changed files with 11 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue