Building PySide on Windows
Before starting to build PySide on Windows, ensure that the following prerequisites are installed:
- Visual Studio Express 2008 (Python 2.6, 2.7, or 3.2) / Visual Studio Express 2010 (Python 3.3) [http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products]
- Qt 4.8 libraries for Windows [http://releases.qt-project.org/qt4/source/qt-win-opensource-4.8.4-vs2008.exe]
- CMake [http://www.cmake.org/cmake/resources/software.html]
- Git [http://git-scm.com/download/win]
- Python 2.6, 2.7, 3.2, or 3.3 [http://www.python.org/download/]
- OpenSSL [http://slproweb.com/products/Win32OpenSSL.html] (Optional)
Make sure that the Git and cmake executables are set in your system path. Now, perform the following steps to start building PySide:
- Git Clone the PySide repository from GitHub, as follows:
c:/> git clone https://github.com/PySide/pyside-setup.git pyside-setup
- Change your working directory to
pyside-setup
, as follows:c:/> cd pyside-setup
- Build the installer:
c:\> c:\Python27\python.exe setup.py bdist_wininst --msvc-version=9.0 --make=c:\Qt\4.8.4\bin\qmake.exe --openssl=c:\OpenSSL32bit\bin
- Upon successful installation, the binaries can be found in the
dist
sub-folder:c:\pyside-setup\dist
On completion of these steps, the PySide should have been successfully built on your system.