As you probably want to start developing with PySide right now, and given the
agile state of PySide at this moment (lots of bugfixes being integrated before
the 1.0 release), it's a good idea to build PySide from source. This will not be
necessary in the future (when PySide packages are hopefully integrated into
MeeGo), but you might nevertheless use an up-to-date version for
development.
Getting the build scripts
I've created a set of build scripts that will automate the building of PySide from
the Git repositories, including installing required build dependencies, so you
can get up to speed quickly.
1. Click on the red “Applications” icon on MeeGo
2. Search for “Terminal” and start the application
3. Install Git via “sudo zypper install git”
4. Create a “pyside” folder in your $HOME with “mkdir pyside”
5. Change into the “pyside” folder: “cd pyside”
6. Check out the source: “git clone git://gitorious.org/pyside/buildscripts.git”
7. Change into the “buildscripts” folder: “cd buildscripts”
8. Fetch the sources: “git submodule init” and “git submodule update”
9. Fetching the sources will take a while – grab a coffee or a tea :)
After the buildscripts have been downloaded, you can use them to build PySide
for MeeGo Netbook.
Building PySide and installing into $HOME
Now that you have gotten all the sources, you can build PySide for your
netbook and install it into your home directory so that it does not conflict with
any system-wide installations you might have in place. That's a safe way to
install PySide from Git, as you can always just remove it from $HOME or
reinstall it as often as you wish without cluttering up your system directories.
1. Open another Terminal (or use the one you still have open from the
previous step)
2. Go into the PySide buildscripts folder: “cd ~/pyside/buildscripts”
3. Install the build dependencies: “sudo ./dependencies.meego.sh”
4. Before the next step, make sure to close down any other apps you might
have running – building PySide takes a lot of RAM. If you have problems
building PySide, consider adding some RAM or adding a swapfile
5. (started 14;28) Build and install everything using “./build_and_install”
6. This will take about 2.5 hours (on an Atom single-core netbook) – yes,
that's a lot, but the upside of using Python for development on your
MeeGo netbook is that your applications do not have to be compiled, so
instead of a develop-compile-run cycle, your have a develop-run cycle.
This is especially nice on low-powered netbooks and saves you time and
battery power on the go.