classification
Title: mingw-meta: build interpeter core
Type: enhancement Stage:
Components: Interpreter Core Versions: Python 3.5
process
Status: open Resolution:
Dependencies: 17590 17592 17596 17597 17598 17599 17601 17602 17603 18500 Superseder:
Assigned To: Nosy List: rpetrov
Priority: normal Keywords:

Created on 2013-03-31 20:42 by rpetrov, last changed 2016-03-19 08:27 by martin.panter.

Messages (4)
msg185669 - (view) Author: Roumen Petrov (rpetrov) * Date: 2013-03-31 20:42
split of issue3871 - this is meta issue only for part related to build interpreter core.
Goal is statically linked python executable (python.exe).
Patch set consist of :
- 01 Issue17148 : nt thread model detection
- 02 issue17590 : translate gcc internal defines to python platform specific defines
- 03 issue17591 : use header in lowercase
- 04 issue17592 : configure MACHDEP and platform for build
- 05 issue17594 : preset configure defaults
- 06 issue17595 : configure largefile support for windows builds
- 07 issue17596 : add wincrypt.h in Python/random.c
- 08 issue17597 : add $srcdir/PC to CPPFLAGS
- 09 issue17598 : init system calls
- 10 issue17599 : detect REPARSE_DATA_BUFFER
- 11 issue17600 : build-in windows modules (winreg)
- 12 issue17601 : determine if pwdmodule should be used
- 13 issue17602 : default sys.path calculations for windows  platforms
- 14 issue17603 : AC_LIBOBJ replacement of fileblocks
- 15 issue17604 : use main() to start execution

After above patches user must regenerate configure script.

Hints:
a) at configure time define CPPFLAGS with minimum supported version like this   "-DWINVER=0x501 -D_WIN32_WINNT=0x501", i.e XP is now minimum
b) use --without-libm 
c) do not use yet --enable-shared

Notes:
a) previous mingw patch (issue3871 posted in 2008) contain code that define w2k as minimum . Now python evolve and minimum is xp. 
b) previous patch nos not define libm in configure script . Instead to updated configure use tis flag
c) will be included in additional patch-set related to build of standard extensions.
msg185822 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2013-04-02 07:11
There are patches on #10615 which may be of some use here.
msg194375 - (view) Author: Roumen Petrov (rpetrov) * Date: 2013-08-04 13:51
please follow build of core modules - issue18653 .
msg223132 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-07-15 18:07
There are a pile of mingw enhancement requests with this and
#18653, #18654 and #19245 being meta issues.  What is the official status of mingw within Python?  Is the originator of these issues solely responsible for taking them forward?
History
Date User Action Args
2016-03-19 08:27:52martin.pantersetdependencies: + mingw: detect REPARSE_DATA_BUFFER
2016-03-12 06:28:25BreamoreBoysetnosy: - BreamoreBoy
2016-03-11 21:04:42martin.pantersetdependencies: + mingw: translate gcc internal defines to python platform specific defines, mingw: configure MACHDEP and platform for build, mingw: add wincrypt.h in Python/random.c, mingw: Allow Objects/exceptions.c to include "errmap.h", mingw: init system calls, mingw: determine if pwdmodule should be used, mingw: default sys.path calculations for windows platforms, AC_LIBOBJ replacement of fileblocks, mingw: detect winsock2 and setup _socket module
2014-07-15 18:07:59BreamoreBoysetnosy: + BreamoreBoy

messages: + msg223132
versions: + Python 3.5, - Python 3.4
2014-02-03 17:03:57BreamoreBoysetnosy: - BreamoreBoy
2013-08-04 13:51:15rpetrovsetmessages: + msg194375
2013-04-02 07:11:13BreamoreBoysetnosy: + BreamoreBoy
messages: + msg185822
2013-03-31 20:42:04rpetrovcreate