Panda3D
Classes | Variables
direct.showutil.FreezeTool Namespace Reference

Classes

class  CompilationEnvironment
 
class  Freezer
 
class  PandaModuleFinder
 

Variables

string dllInitCode
 
string frozenDllMainCode
 
string frozenExtensions
 
string frozenMainCode
 
tuple isDebugBuild = (python.lower().endswith('_d'))
 
string mainInitCode
 
list okMissing
 
 p3extend_frozen = None
 
string programFile
 
 python = os.path.splitext(os.path.split(sys.executable)[1])[0]
 
dictionary reportedMissing = {}
 
list sourceTrees = ['direct']
 
list startupModules
 

Detailed Description

This module contains code to freeze a number of Python modules
into a single (mostly) standalone DLL or EXE. 

Variable Documentation

◆ dllInitCode

string dllInitCode

◆ frozenDllMainCode

string frozenDllMainCode

◆ frozenExtensions

string frozenExtensions
Initial value:
1 = """
2 
3 static struct _inittab extensions[] = {
4  /* Sentinel */
5  {0, 0}
6 };
7 extern DL_IMPORT(int) PyImport_ExtendInittab(struct _inittab *newtab);
8 
9 int PyInitFrozenExtensions()
10 {
11  return PyImport_ExtendInittab(extensions);
12 }
13 """

◆ frozenMainCode

string frozenMainCode

◆ isDebugBuild

tuple isDebugBuild = (python.lower().endswith('_d'))

◆ mainInitCode

string mainInitCode
Initial value:
1 = """
2 %(frozenMainCode)s
3 
4 int
5 main(int argc, char *argv[]) {
6  PyImport_FrozenModules = _PyImport_FrozenModules;
7  return Py_FrozenMain(argc, argv);
8 }
9 """

◆ okMissing

list okMissing
Initial value:
1 = [
2  'Carbon.Folder', 'Carbon.Folders', 'HouseGlobals', 'Carbon.File',
3  'MacOS', '_emx_link', 'ce', 'mac', 'org.python.core', 'os.path',
4  'os2', 'posix', 'pwd', 'readline', 'riscos', 'riscosenviron',
5  'riscospath', 'dbm', 'fcntl', 'win32api',
6  '_winreg', 'ctypes', 'ctypes.wintypes', 'nt','msvcrt',
7  'EasyDialogs', 'SOCKS', 'ic', 'rourl2path', 'termios',
8  'OverrideFrom23._Res', 'email', 'email.Utils', 'email.Generator',
9  'email.Iterators', '_subprocess', 'gestalt',
10  'direct.extensions_native.extensions_darwin',
11  ]

◆ p3extend_frozen

p3extend_frozen = None

◆ programFile

string programFile
Initial value:
1 = """
2 #include "Python.h"
3 #ifdef _WIN32
4 #include "malloc.h"
5 #endif
6 
7 %(moduleDefs)s
8 
9 static struct _frozen _PyImport_FrozenModules[] = {
10 %(moduleList)s
11  {NULL, NULL, 0}
12 };
13 
14 %(initCode)s
15 """

◆ python

python = os.path.splitext(os.path.split(sys.executable)[1])[0]

◆ reportedMissing

dictionary reportedMissing = {}

◆ sourceTrees

list sourceTrees = ['direct']

◆ startupModules

list startupModules
Initial value:
1 = [
2  'site', 'sitecustomize', 'os', 'encodings.cp1252',
3  'org',
4  ]