mirror of
https://github.com/python/cpython.git
synced 2024-11-30 18:51:15 +01:00
144fa678d2
augmenting them here and there. For now, it works more-or-less similar to unix/windows freeze, generating a config.c file, but storing modules in PYC resources. A template project is also copied. The hooks are in place to freeze by merging shared libraries so you can freeze without a C compiler/linker, but this does not work yet.
9 lines
233 B
Python
9 lines
233 B
Python
"""macgenerate - Generate the out for macfreeze"""
|
|
|
|
def generate(program, module_dict):
|
|
for name in module_dict.keys():
|
|
print 'Include %-20s\t'%name,
|
|
module = module_dict[name]
|
|
print module.gettype(), '\t', `module`
|
|
return 0
|