i have lot of pain while compiling pyside code linux...much less windows, , source around 300kb. know safest way compile it.
- is best compile qt, pyside bindings, python 2.7, , every import separate process?
1.1. if way, easier trace errors?
does qt4-qmake have reason use while compiling?
is better rewrite code pyqt instead of pyside?
are depending happy combination of versions, instance: ( qt v4.8.2, pyside 1.0.1, python 2.7.3 ) ?
edit: compiling mean convert python scripts executable windows/linux programs, py2exe, cx_freeze or pyinstaller do.
i appreciate suggestions.
my experience cx_freeze (using python 3.3). works in windows/linux/osx. simple example can found here (with documentation): http://cx-freeze.readthedocs.org/en/latest/distutils.html#distutils
another example:
from cx_freeze import setup, executable # dependencies build_exe_options = { "packages": ["os", "sys", "glob", "simplejson", "re", "atexit", "pyside.qtcore", "pyside.qtgui", "pyside.qtxml"], "include_files": [("./example/ui/mainwindow.ui", "ui/mainwindow.ui"), ("./example/ui/examplewidget.ui", "ui/examplewidget.ui"), ("./example/ui/testdialog.ui", "ui/testdialog.ui"), ("./example/resources/style.qss", "ui/style.qss")], # isn't necessary after "excludes": ["tkinter", "tkconstants", "tcl"], "build_exe": "build", "icon": "./example/resources/icons/monitor.ico" } executable = [ executable("./bin/example.py", base="win32gui", targetname="example.exe", targetdir="build", copydependentfiles=true) ] setup( name="example", version="0.1", description="example", # using word "test" makes exe invoke uac in win7. wth? author="me", options={"build_exe": build_exe_options}, executables=executable, requires=['pyside', 'cx_freeze', 'simplejson'] )