Found out how to do it:
The two apps have to be put in the same folder (project) and then setup.py should look like this:
from distutils.core import setup
import py2exe
setup(
name="My apps",
version='1.0',
author='Egor Wexler',
windows=['app1.py', 'app2.py', 'app3.py'],
zipfile=None,
options={
'py2exe': {
'dist_dir': 'build',
'compressed': False,
'bundle_files': 2,
}
}
)
Then all apps will be compiled to separate exe-files - app1.exe, app2.exe, app3.exe respectively and will use the shared runtime.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…