Technical Preview of PySide-Shiboken
Carlos Gonçalves
by Carlos Gonçalves

Categories

  • articles

Tags

  • fedora
  • mandriva
  • opensuse
  • pyside
  • qt

Marcelo Lira (PySide developer) announced moments ago on the PySide mailing list the technical preview of PySide-Shiboken:

Hello folks,

today we got the Shiboken generated PySide bindings in a good enough shape to do a proper release with tarballs and all the required niceties, instead of rough git urls. Keep in mind that this is an alfa release, or a “technical preview” as the kids in my lawn are used to say, some modules are missing and bugs are not hard to find.

This PySide release contains bindings for the following modules:

  • QtCore
  • QtGui
  • QtNetwork
  • QtWebKit
  • QtSvg
  • QtXml
  • QtTest
  • QtOpenGL
  • QtSql

Feel free to try your Python code with this version of PySide. You know how it works: more users == less bugs. As long as you guys tell us about the bugs: http://bugs.openbossa.org

A noteworthy fact is the first release of the Shiboken C++ binding generator. Yay! We strongly encourage it’s use to produce non-Qt C++ bindings for Python, it will make your life easier. If it turns out to be not so easy, come and talk with us on #pyside channel (Freenode).

Here follow everything needed for this release, in order of compilation.

API Extractor, version 0.4.0

http://www.pyside.org/files/apiextractor-0.4.0.tar.bz2

Generator Runner, version 0.4.0

http://www.pyside.org/files/generatorrunner-0.4.0.tar.bz2

Shiboken, version 0.2.0

http://www.pyside.org/files/shiboken-0.2.0.tar.bz2

PySide, version 0.3.0

http://www.pyside.org/files/pyside-qt4.6+0.3.0.tar.bz2

You will notice that the size of the generated bindings for the Qt modules in no way resemble the figures from the Boost.Python version. And talking about Boost: packagers, be aware that no component depends on Boost::Graph anymore. Yay^2!

P.S.: cgoncalves, thanks for all the code. And to everyone else that provided bug reports, patches, beers, etc.

And I followed by adding the usual pos-release-announcement announcement:

Don’t want to get your hands dirty and have headaches due to compilation issues? That’s bloody easy! Get this very same release version already packaged for your distribution from the openSUSE Build Service! Packages (32bit and 64bit) available for the following distributions:

  • openSUSE 11.0, 11.1, 11.2 (for both Qt 4.5 and Qt 4.6 version available), and Factory
  • Fedora 11 and 12
  • Mandriva 2009.1 and 2010

You can install PySide package by adding the proper repository from http://download.opensuse.org/repositories/home:/cgoncalves:/pyside:/shiboken/ to your package manager (zypper, yum, urpi, smart or any other rpm-md compatible) followed by the installation of package ‘python-pyside’.

But (!) in case you are all a bleeding-eye person, or simply if you want to take an extremely important role on the development by testing it and reporting back to developers, you can even get the regularly snapshots taken from PySide’s Git mainline by adding the devel repository[1].

Or if you happen to be from the old-school and love PySide Boost based you can still install and use it[2].

I would like to take the opportunity to congratulate and thanks the PySide team for their magnificent effort given to the project. You guys rock!

[1] http://download.opensuse.org/repositories/home:/cgoncalves:/pyside:/devel/

[2] http://download.opensuse.org/repositories/home:/cgoncalves:/pyside:/boost/