Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5f8a23f

Browse files
committed
Since the errno module is needed by os._execvpe(), and that is used by the
setup.py (indirectly) script to build the standard dynamically loaded modules, the errno module is being made static so it will always be available. Closes SF bug #591205 (needed on trunk only).
1 parent 2805428 commit 5f8a23f

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

Modules/Setup.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ PYTHONPATH=$(COREPYTHONPATH)
109109
# setup.py script in the root of the Python source tree.
110110

111111
posix posixmodule.c # posix (UNIX) system calls
112+
errno errnomodule.c # posix (UNIX) errno values
112113
_sre _sre.c # Fredrik Lundh's new regular expressions
113114

114115
# The rest of the modules listed in this file are all commented out by
@@ -177,7 +178,6 @@ GLHACK=-Dclear=__GLclear
177178
#fcntl fcntlmodule.c # fcntl(2) and ioctl(2)
178179
#pwd pwdmodule.c # pwd(3)
179180
#grp grpmodule.c # grp(3)
180-
#errno errnomodule.c # posix (UNIX) errno values
181181
#select selectmodule.c # select(2); not on ancient System V
182182

183183
# Memory-mapped files (also works on Win32).

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,6 @@ def detect_modules(self):
315315
exts.append( Extension('pwd', ['pwdmodule.c']) )
316316
# grp(3)
317317
exts.append( Extension('grp', ['grpmodule.c']) )
318-
# posix (UNIX) errno values
319-
exts.append( Extension('errno', ['errnomodule.c']) )
320318
# select(2); not on ancient System V
321319
exts.append( Extension('select', ['selectmodule.c']) )
322320

0 commit comments

Comments
 (0)