[PySide] PySide on OS X

Sean Fisk sean at seanfisk.com
Sat Nov 9 07:18:57 CET 2013

Hi Tim,

I frequently use PySide on OS X. The best way to install and use it, in my
opinion, is the following:


   Install homebrew <http://brew.sh/> and run brew install pyside
   pyside-tools. This will automatically download and compile Qt from
   source as well.

   Create a virtualenv for your project.
    - Write a PTH file <http://docs.python.org/2/library/site.html> to the
   site-packages directory of your virtualenv that points to your PySide
   installation. On my system the path is
   /usr/local/lib/python2.7/site-packages. With that, you should be able to

   python -c 'import PySide; print PySide.__version__'

To distribute our PySide app we use py2app
<http://pythonhosted.org/py2app/>to create an app bundle,
makeicns <https://bitbucket.org/mkae/makeicns> to create our application
icon, and yoursway-create-dmg<https://github.com/andreyvit/yoursway-create-dmg>to
create a fancy disk image. They are not without issues but for the
part work well. Our app distributes without any external dependencies.

I can’t comment on PySide with OS 10.9 Mavericks as I am still on OS 10.6
Snow Leopard (I know, I know). Honestly, the reason I haven’t updated is
because I figured everything would break. Here are my versions:

   - Qt 4.8.5
   - PySide 1.2.0
   - Python 2.7.5
   - Mac OS 10.6 Snow Leopard
   - py2app 0.7.3

Please let me know if you need any help installing or distributing your
application. Our project is closed-source but I would be happy to share our
distribution code with you.

Sean Fisk

On Fri, Nov 8, 2013 at 8:47 PM, Tim Doty <thoromyr at mac.com> wrote:

> PySide 1.2.1 does not appear to be available for OS X. That is, prebuilt
> is only on Windows, linux uses whatever distros package management, and OS
> X users are expected to get the Qt developer source and compile everything
> from scratch. At least, the only 1.2.1 I can find presents it that way [
> https://pypi.python.org/pypi/PySide]
> PySide 1.1.1 appears to be the last packaged for OS X. [
> https://qt-project.org/wiki/PySide_Binaries_MacOSX] Unfortunately it
> doesn’t appear to be compatible with OS X 10.9 inasmuch as PySide was
> installed and working until I updated to 10.9.
> Is anyone using PySide on OS X? On OS X 10.9? Although theoretically I
> could compile Qt and PySide that isn’t a particularly good solution when
> the apps I write need to be able to run on other systems — for better or
> worse I lack the requisite knowledge to package up Qt and PySide for
> redistribution.
> Is PySide just not widely enough used that lack of OS X support doesn’t
> matter?
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/pyside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20131109/ed487375/attachment.html>

More information about the PySide mailing list