├── dependencies.arch.sh ├── dependencies.ubuntu.sh ├── dependencies.meego.sh ├── dependencies.opensuse.sh ├── dependencies.fedora.sh ├── .gitmodules ├── dependencies.osx.sh ├── environment.sh └── README /dependencies.arch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Install build dependencies for Arch Linux 3 | 4 | pacman -S --asdeps cmake qt libxml2 libxslt python2 gcc make 5 | 6 | -------------------------------------------------------------------------------- /dependencies.ubuntu.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Install dependencies for Ubuntu 3 | 4 | apt-get install build-essential cmake libqt4-dev libxml2-dev libxslt1-dev python-dev qtmobility-dev 5 | 6 | -------------------------------------------------------------------------------- /dependencies.meego.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Install build dependencies for MeeGo 3 | 4 | zypper install cmake qt-devel libxml2-devel libxslt-devel python-devel rpmdevtools gcc gcc-c++ make 5 | 6 | -------------------------------------------------------------------------------- /dependencies.opensuse.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Install dependencies for openSUSE 3 | 4 | zypper install cmake libqt4-devel libQtWebKit-devel libxml2-devel libxslt-devel python-devel rpm-devel gcc gcc-c++ make 5 | -------------------------------------------------------------------------------- /dependencies.fedora.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Install dependencies for RedHat 6 and Fedora 12 (and above) 3 | 4 | yum install cmake qt-devel qt-webkit-devel libxml2-devel libxslt-devel python-devel rpmdevtools gcc gcc-c++ make 5 | 6 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "apiextractor"] 2 | path = apiextractor 3 | url = https://github.com/PySide/Apiextractor.git 4 | [submodule "generatorrunner"] 5 | path = generatorrunner 6 | url = https://github.com/PySide/Generatorrunner.git 7 | [submodule "shiboken"] 8 | path = shiboken 9 | url = https://github.com/PySide/Shiboken.git 10 | [submodule "pyside"] 11 | path = pyside 12 | url = https://github.com/PySide/PySide.git 13 | [submodule "pyside-tools"] 14 | path = pyside-tools 15 | url = https://github.com/PySide/Tools.git 16 | [submodule "mobility"] 17 | path = mobility 18 | url = https://github.com/PySide/Mobility.git 19 | -------------------------------------------------------------------------------- /dependencies.osx.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Install build dependencies for Mac OS X using Homebrew 3 | # Get Homebrew from http://mxcl.github.com/homebrew/ 4 | 5 | if [ "`which brew`" == "" ]; then 6 | cat <&1 | sed -e 's/Python \(3\.[0-9]*\).*/python\1/'` 21 | export PYSIDESANDBOXPATH=$HOME/pkg/pyside-sandbox-python3 22 | else 23 | # Get the Python version as "pythonx.y", e.g. "python2.6" 24 | PYTHONXY=`python -V 2>&1 | sed -e 's/Python \(2\.[0-9]*\).*/python\1/'` 25 | export PYSIDESANDBOXPATH=$HOME/pkg/pyside-sandbox 26 | fi 27 | 28 | export PATH=$PYSIDESANDBOXPATH/bin:$PATH 29 | export PYTHONPATH=$PYSIDESANDBOXPATH/lib/$PYTHONXY/site-packages:$PYSIDESANDBOXPATH/lib64/$PYTHONXY/site-packages:$PYTHONPATH 30 | export LD_LIBRARY_PATH=$PYSIDESANDBOXPATH/lib:$LD_LIBRARY_PATH 31 | export PKG_CONFIG_PATH=$PYSIDESANDBOXPATH/lib/pkgconfig:$PKG_CONFIG_PATH 32 | export DYLD_LIBRARY_PATH=$PYSIDESANDBOXPATH/lib:$DYLD_LIBRARY_PATH 33 | 34 | # If you want to use Qt Simulator, uncomment following line and set the 35 | # enviroment variable $QT_SDK_HOME to the directory that contains the Qt 36 | # tools for the Simulator platform (for example $HOME/qtsdk/Simulator/Qt/gcc/bin") 37 | 38 | #Q_WS_SIMULATOR="yes" 39 | 40 | # If you want to use Qt SDK, uncomment the following line, or set the 41 | # environment variable $QT_SDK_HOME in something like your ~/.profile 42 | 43 | #QT_SDK_HOME="$HOME/qtsdk/Desktop/Qt/474/gcc" 44 | 45 | if [ "$QT_SDK_HOME" != "" ]; then 46 | export PATH=$QT_SDK_HOME/bin:$QT_SDK_HOME/qt/bin:$PATH 47 | export LD_LIBRARY_PATH=$QT_SDK_HOME/lib:$LD_LIBRARY_PATH 48 | export QTDIR=$QT_SDK_HOME:$QT_SDK_HOME/qt:$QTDIR 49 | fi 50 | 51 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | Initial setup 2 | ============= 3 | 4 | git submodule init 5 | git submodule update 6 | 7 | Install build dependencies 8 | ========================== 9 | 10 | On MeeGo: 11 | 12 | sudo ./dependencies.meego.sh 13 | 14 | On Ubuntu: 15 | 16 | sudo ./dependencies.ubuntu.sh 17 | 18 | On Arch Linux: 19 | 20 | sudo ./dependencies.arch.sh 21 | 22 | On Mac OS X (using Homebrew): 23 | 24 | sudo ./dependencies.osx.sh 25 | 26 | On Red Hat Linux, CentOS 6 and Fedora: 27 | 28 | sudo ./dependencies.fedora.sh 29 | 30 | On openSUSE: 31 | sudo ./dependencies.opensuse.sh 32 | 33 | Additional dependencies for Mac OS X 34 | ==================================== 35 | 36 | The dependencies script on Mac OS X does not install a C++ toolchain or 37 | the Qt libraries. Instead, you should install Xcode and the Qt SDK 38 | manually: 39 | 40 | http://developer.apple.com/tools/xcode/ 41 | http://qt.nokia.com/downloads/sdk-mac-os-cpp 42 | 43 | Build and install 44 | ================= 45 | 46 | ./build_and_install 47 | 48 | By default, this will do a Release build. If you want to do a Debug 49 | build, you have to uncomment the correct line in environment.sh 50 | 51 | If you want to build PySide against the Qt SDK, you have to set the 52 | environment variable QT_SDK_HOME - this variable needs to be set before 53 | "environment.sh" is sourced, and before "build_and_install" is run. 54 | 55 | To build Qt Mobility bindings (or to rebuild a specific module), pass 56 | the module names you want to build as command line arguments, e.g.: 57 | 58 | ./build_and_install mobility 59 | 60 | Python 3 Support 61 | ================ 62 | 63 | By default scripts build PySide for Python 2. To build Python 3 version 64 | uncomment the following line in "environment.sh": 65 | 66 | #export PYSIDE_BUILDSCRIPTS_USE_PYTHON3=yes 67 | 68 | This will use "python3" to determine the Python version and will also 69 | take care of passing the right build arguments to Shiboken's CMake. 70 | 71 | The buildscripts are configured so that the default installation path 72 | for PySide will be different if PySide is compiled for Python 3. This 73 | has the advantage that you can have PySide for Python 2 and 3 installed 74 | without any conflicts. 75 | 76 | Please note that some parts of PySide (notably pyside-tools and PySide 77 | Mobility) are not yet able to handle Python 3 from the CMake scripts, so 78 | they will still get built against Python 2 (PySide bugs 1148 and 1149). 79 | 80 | 81 | Updating to the latest version 82 | ============================== 83 | 84 | git submodule foreach git checkout master 85 | git submodule foreach git pull 86 | 87 | Working with the build 88 | ====================== 89 | 90 | source /path/to/environment.sh 91 | python /path/to/app.py 92 | 93 | --------------------------------------------------------------------------------