43 lines
1.7 KiB
Diff
43 lines
1.7 KiB
Diff
diff -Naur Python-3.7.0-orig/configure.ac Python-3.7.0/configure.ac
|
|
--- Python-3.7.0-orig/configure.ac 2018-07-12 10:20:57.098311000 +0300
|
|
+++ Python-3.7.0/configure.ac 2018-07-12 10:20:57.472711600 +0300
|
|
@@ -3138,6 +3138,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
|
|
+
|
|
AC_SUBST(LDLAST)
|
|
|
|
# Templates for things AC_DEFINEd more than once.
|
|
diff -Naur Python-3.7.0-orig/Modules/Setup.config.in Python-3.7.0/Modules/Setup.config.in
|
|
--- Python-3.7.0-orig/Modules/Setup.config.in 2018-07-12 10:20:57.098311000 +0300
|
|
+++ Python-3.7.0/Modules/Setup.config.in 2018-07-12 10:20:57.472711600 +0300
|
|
@@ -6,6 +6,9 @@
|
|
# init system calls(posix/nt/...) for INITFUNC (used by makesetup)
|
|
@INITSYS@ -DPy_BUILD_CORE posixmodule.c # system calls
|
|
|
|
+# 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
|
|
|
|
diff -Naur Python-3.7.0-orig/Modules/Setup.dist Python-3.7.0/Modules/Setup.dist
|
|
--- Python-3.7.0-orig/Modules/Setup.dist 2018-07-12 10:20:55.351107900 +0300
|
|
+++ Python-3.7.0/Modules/Setup.dist 2018-07-12 10:20:57.472711600 +0300
|
|
@@ -105,8 +105,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
|