blob: fc37f869fdbbcc3af22520e502c39f316c4e8927 [file] [log] [blame]
diff -Naur Python-3.8.0-orig/configure.ac Python-3.8.0/configure.ac
--- Python-3.8.0-orig/configure.ac 2019-10-22 10:01:01.887345400 +0300
+++ Python-3.8.0/configure.ac 2019-10-22 10:01:03.821748800 +0300
@@ -3188,6 +3188,13 @@
*-*-mingw*) USE_WIN32_MODULE=;;
esac
+# Determine if pwdmodule should be used.
+AC_SUBST(USE_PWD_MODULE)
+USE_PWD_MODULE=
+case $host in
+ *-*-mingw*) USE_PWD_MODULE='#';;
+esac
+
# Templates for things AC_DEFINEd more than once.
# For a single AC_DEFINE, no template is needed.
AH_TEMPLATE(_REENTRANT,
diff -Naur Python-3.8.0-orig/Modules/Setup Python-3.8.0/Modules/Setup
--- Python-3.8.0-orig/Modules/Setup 2019-10-22 10:00:57.394537500 +0300
+++ Python-3.8.0/Modules/Setup 2019-10-22 10:01:04.227349500 +0300
@@ -102,8 +102,6 @@
# setup.py script in the root of the Python source tree.
errno errnomodule.c # posix (UNIX) errno values
-pwd pwdmodule.c # this is needed to find out the user's home dir
- # if $HOME is not set
_sre _sre.c # Fredrik Lundh's new regular expressions
_codecs _codecsmodule.c # access to the builtin codecs and codec registry
_weakref _weakref.c # weak references
diff -Naur Python-3.8.0-orig/Modules/Setup.config.in Python-3.8.0/Modules/Setup.config.in
--- Python-3.8.0-orig/Modules/Setup.config.in 2019-10-22 10:01:02.292946100 +0300
+++ Python-3.8.0/Modules/Setup.config.in 2019-10-22 10:01:05.038550900 +0300
@@ -6,6 +6,9 @@
# init system calls(posix/nt/...) for INITFUNC (used by makesetup)
@INITSYS@ -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal posixmodule.c
+# This is needed to find out the user's home dir if $HOME is not set
+@USE_PWD_MODULE@pwd pwdmodule.c
+
# build-in modules for windows platform:
@USE_WIN32_MODULE@winreg ../PC/winreg.c