|
@@ -81,6 +81,12 @@ defaultHiddenImports = {
|
|
|
'pandas.compat': ['lzma', 'cmath'],
|
|
'pandas.compat': ['lzma', 'cmath'],
|
|
|
'pandas._libs.tslibs.conversion': ['pandas._libs.tslibs.base'],
|
|
'pandas._libs.tslibs.conversion': ['pandas._libs.tslibs.base'],
|
|
|
'plyer': ['plyer.platforms'],
|
|
'plyer': ['plyer.platforms'],
|
|
|
|
|
+ 'scipy.linalg': ['scipy.linalg.cython_blas', 'scipy.linalg.cython_lapack'],
|
|
|
|
|
+ 'scipy.sparse.csgraph': ['scipy.sparse.csgraph._validation'],
|
|
|
|
|
+ 'scipy.spatial._qhull': ['scipy._lib.messagestream'],
|
|
|
|
|
+ 'scipy.spatial.transform._rotation': ['scipy.spatial.transform._rotation_groups'],
|
|
|
|
|
+ 'scipy.special._ufuncs': ['scipy.special._ufuncs_cxx'],
|
|
|
|
|
+ 'scipy.stats._stats': ['scipy.special.cython_special'],
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1189,22 +1195,31 @@ class Freezer:
|
|
|
|
|
|
|
|
# Special case for sysconfig, which depends on a platform-specific
|
|
# Special case for sysconfig, which depends on a platform-specific
|
|
|
# sysconfigdata module on POSIX systems.
|
|
# sysconfigdata module on POSIX systems.
|
|
|
- if 'sysconfig' in self.mf.modules:
|
|
|
|
|
|
|
+ missing = []
|
|
|
|
|
+ if 'sysconfig' in self.mf.modules and \
|
|
|
|
|
+ ('linux' in self.platform or 'mac' in self.platform):
|
|
|
|
|
+ modname = '_sysconfigdata'
|
|
|
if sys.version_info >= (3, 6):
|
|
if sys.version_info >= (3, 6):
|
|
|
|
|
+ modname += '_'
|
|
|
|
|
+ if sys.version_info < (3, 8):
|
|
|
|
|
+ modname += 'm'
|
|
|
|
|
+
|
|
|
if 'linux' in self.platform:
|
|
if 'linux' in self.platform:
|
|
|
arch = self.platform.split('_', 1)[1]
|
|
arch = self.platform.split('_', 1)[1]
|
|
|
- self.__loadModule(self.ModuleDef('_sysconfigdata__linux_' + arch + '-linux-gnu', implicit=True))
|
|
|
|
|
|
|
+ modname += '_linux_' + arch + '-linux-gnu'
|
|
|
elif 'mac' in self.platform:
|
|
elif 'mac' in self.platform:
|
|
|
- self.__loadModule(self.ModuleDef('_sysconfigdata__darwin_darwin', implicit=True))
|
|
|
|
|
- elif 'linux' in self.platform or 'mac' in self.platform:
|
|
|
|
|
- self.__loadModule(self.ModuleDef('_sysconfigdata', implicit=True))
|
|
|
|
|
|
|
+ modname += '_darwin_darwin'
|
|
|
|
|
+
|
|
|
|
|
+ try:
|
|
|
|
|
+ self.__loadModule(self.ModuleDef(modname, implicit=True))
|
|
|
|
|
+ except:
|
|
|
|
|
+ missing.append(modname)
|
|
|
|
|
|
|
|
# Now, any new modules we found get added to the export list.
|
|
# Now, any new modules we found get added to the export list.
|
|
|
for origName in list(self.mf.modules.keys()):
|
|
for origName in list(self.mf.modules.keys()):
|
|
|
if origName not in origToNewName:
|
|
if origName not in origToNewName:
|
|
|
self.modules[origName] = self.ModuleDef(origName, implicit = True)
|
|
self.modules[origName] = self.ModuleDef(origName, implicit = True)
|
|
|
|
|
|
|
|
- missing = []
|
|
|
|
|
for origName in self.mf.any_missing_maybe()[0]:
|
|
for origName in self.mf.any_missing_maybe()[0]:
|
|
|
if origName in startupModules:
|
|
if origName in startupModules:
|
|
|
continue
|
|
continue
|