python - Produce both versions x32 and x64 under PyInstaller -


i have installed python 2.7.xx x64 , trying build executables pyinstaller.

do have chance build both artifacts x32 , x64 existing python x64?

current pyinstaller script shown below in app.spec file:

pyinstaller src/app.spec

# -*- mode: python -*- import os import platform  pyside import qtcore   onefile = false console = false  platform_name = platform.system().lower() app_name = {'linux': 'app',             'darwin': 'app',             'windows': 'app.exe'}[platform_name]  # include imageformats plugins plugins=os.path.join(os.path.dirname(qtcore.__file__), "plugins\\imageformats") static_files = tree(plugins, 'plugins\\imageformats') static_files += [('app.ico', 'src\\app.ico', 'data')]  # analyze sources = analysis(['src\\app.py'],              hiddenimports=['pkg_resources'],              hookspath=none,              runtime_hooks=none)  pyz = pyz(a.pure)  if onefile:     exe = exe(pyz, a.scripts, a.binaries, a.zipfiles, a.datas, name=app_name,         debug=false, strip=none, upx=true, console=console, icon='src/app.ico', version='src/app.ver') else:     exe = exe(pyz, a.scripts, exclude_binaries=true, name=app_name, debug=false,         strip=none, upx=true, console=console, icon='src/app.ico', version='src/app.ver')     coll = collect(exe, a.binaries, static_files, a.zipfiles, a.datas, strip=none, upx=true, name='app') 

no, won't work. should install 32 bit python , create "other" installer starting creation process that.

it possible have both 32 , 64 bit version of same python major.minor version on same machine. have virtual machine 32 and 64 bit versions of 2.7/2.6/3.3/3.4 development. 1 python (the 64 bit version of 2.7) in path , runs other stuff (tox, py.test, mercurial) python based. specify full path (like c:\python\2.7-32\python.exe use 32 bit version). batch file generate .whl files ruamel.yaml is:

c:\python\2.7\python.exe setup.py bdist_wheel c:\python\2.6\python.exe setup.py bdist_wheel c:\python\2.7-32\python.exe setup.py bdist_wheel c:\python\2.6-32\python.exe setup.py bdist_wheel c:\python\3.4\python.exe setup.py bdist_wheel c:\python\3.3\python.exe setup.py bdist_wheel c:\python\3.4-32\python.exe setup.py bdist_wheel c:\python\3.3-32\python.exe setup.py bdist_wheel c:\pypy2\2.5\pypy-2.5.1-win32\pypy.exe setup.py bdist_wheel 

of course exact paths depend on install interpreters.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -