classification
Title: CPython 3.8.5 fails to build on Windows with -E option
Type: Stage:
Components: Build, Windows Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Vladislav Mikhalin, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2020-07-30 13:23 by Vladislav Mikhalin, last changed 2020-07-30 16:07 by Vladislav Mikhalin.

Messages (3)
msg374614 - (view) Author: Vladislav Mikhalin (Vladislav Mikhalin) Date: 2020-07-30 13:23
These errors are generated on a clean build:

C:\cpython-3.8.5\Modules\_ctypes\_ctypes.c(107,10): fatal error C1083: Cannot open include file: 'ffi.h': No such file or directory [C:\cpython-3.8.5\PCbuild\_ctypes.vcxproj]
C:\cpython-3.8.5\Modules\_ctypes\callbacks.c(4,10): fatal error C1083: Cannot open include file: 'ffi.h': No such file or directory [C:\cpython-3.8.5\PCbuild\_ctypes.vcxproj]
C:\cpython-3.8.5\Modules\_ctypes\callproc.c(71,10): fatal error C1083: Cannot open include file: 'ffi.h': No such file or directory [C:\cpython-3.8.5\PCbuild\_ctypes.vcxproj]
C:\cpython-3.8.5\Modules\_ctypes\cfield.c(3,10): fatal error C1083: Cannot open include file: 'ffi.h': No such file or directory [C:\cpython-3.8.5\PCbuild\_ctypes.vcxproj]
C:\cpython-3.8.5\Modules\_ctypes\malloc_closure.c(2,10): fatal error C1083: Cannot open include file: 'ffi.h': No such file or directory [C:\cpython-3.8.5\PCbuild\_ctypes.vcxproj]
C:\cpython-3.8.5\Modules\_ctypes\stgdict.c(2,10): fatal error C1083: Cannot open include file: 'ffi.h': No such file or directory [C:\cpython-3.8.5\PCbuild\_ctypes.vcxproj]
msg374617 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2020-07-30 15:47
Yes, if you use -E then you need to provide the dependencies in some other way.

The option is there to suppress network access at build time, not to build without those modules.
msg374618 - (view) Author: Vladislav Mikhalin (Vladislav Mikhalin) Date: 2020-07-30 16:07
The documentation states:
  -E  Don't fetch or build external libraries.  Extension modules that
      depend on external libraries will not attempt to build if this flag
      is present; -e is also accepted to explicitly enable fetching and
      building externals.

So, according to this, any module that is dependent on external libraries will not be built. Ant it was working with 3.7.5.
History
Date User Action Args
2020-07-30 16:07:13Vladislav Mikhalinsetmessages: + msg374618
2020-07-30 15:47:49steve.dowersetmessages: + msg374617
2020-07-30 13:36:26xtreaksetnosy: + paul.moore, tim.golden, steve.dower, zach.ware
components: + Windows
2020-07-30 13:23:44Vladislav Mikhalincreate