[Python-bugs-list] [ python-Bugs-591205 ] errno not available at setup.py time
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 05 Aug 2002 10:47:57 -0700
Bugs item #591205, was opened at 2002-08-05 13:31
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=591205&group_id=5470
Category: Python Library
Group: Python 2.3
Status: Open
>Resolution: Accepted
Priority: 8
Submitted By: Fred L. Drake, Jr. (fdrake)
>Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: errno not available at setup.py time
Initial Comment:
This bug was introduced in Lib/os.py 1.59.
Distutils uses os._execvpe (indirectly) while building
extension modules, but the errno import can fail while
building the standard dynamically loadable modules that
come with Python. This means that a clean build from
sources is not possible; the errno module must already
be available.
I can fix this by making the errno module built-in
statically, but would like approval before doing so,
since there may be other ways of dealing with this. I
suspect errno is almost always used, however, so there
shouldn't be any problems with building it statically.
----------------------------------------------------------------------
Comment By: Guido van Rossum (gvanrossum)
Date: 2002-08-05 13:47
Message:
Logged In: YES
user_id=6380
Argh! OK, make errno static. The alternative (hardcoding the
error values if errno can't be imported) seems unattractive.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=591205&group_id=5470