From fee0eed8889aa57e15708d8501d38630a25d38f4 Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Thu, 1 May 2014 00:24:16 +0200 Subject: Initial copy, without editing. This is definitely not correct, but a good starting point, after the copied stuff was updated. Change-Id: I098f9bbaf279900d41c35497f148615de89d3c53 --- README.rst | 149 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 149 insertions(+) (limited to 'README.rst') diff --git a/README.rst b/README.rst index 684960017..7ab9e5f0b 100644 --- a/README.rst +++ b/README.rst @@ -242,6 +242,155 @@ Windows: Installing PySide distribution into ``virtual`` Python environment c:\> Scripts\pip install --use-wheel ..\dist\PySide-1.2.2-cp27-none-win32.whl +Building PySide on a Mac OS X System +==================================== + + +Mac OS X: Installing prerequisites +---------------------------------- + +#. Install build dependencies: + + :: + + $ sudo apt-get install build-essential git cmake libqt4-dev libphonon-dev python2.7-dev libxml2-dev libxslt1-dev qtmobility-dev + +#. Install latest ``pip`` distribution into the Python you + installed in the first step: download `get-pip.py + `_ and run it using + the ``python`` interpreter of your Python 2.7 installation using a + command prompt: + + :: + + $ wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py + $ sudo python2.7 get-pip.py + +#. Install latest ``wheel`` distribution: + + :: + + $ sudo pip2.7 install wheel + + +Mac OS X: Building PySide distribution +-------------------------------------- + +#. Download ``PySide`` source distribution: + + :: + + $ wget https://pypi.python.org/packages/source/P/PySide/PySide-1.2.2.tar.gz + +#. Extract the source distribution: + + :: + + $ tar -xvzf PySide-1.2.2.tar.gz + +#. Switch to the distribution directory: + + :: + + $ cd PySide-1.2.2 + +#. Build the ``wheel`` binary distribution: + + :: + + $ python2.7 setup.py bdist_wheel --qmake=/usr/bin/qmake-qt4 + +#. Optionally you can build standalone version of distribution with embedded Qt libs: + + :: + + $ python2.7 setup.py bdist_wheel --qmake=/usr/bin/qmake-qt4 --standalone + + +Mac OS X: Building PySide distribution from git repository +---------------------------------------------------------- + +#. Clone ``PySide`` setup scripts from git repository: + + :: + + $ git clone https://github.com/PySide/pyside-setup.git pyside-setup + +#. Switch to the ``pyside-setup`` directory: + + :: + + $ cd pyside-setup + +#. Build ``PySide`` distribution: + + :: + + $ python2.7 setup.py bdist_wheel --qmake=/usr/bin/qmake-qt4 --version=1.2.2 + +#. Optionally you can build standalone version of distribution with embedded Qt libs: + + :: + + $ python2.7 setup.py bdist_wheel --qmake=/usr/bin/qmake-qt4 --version=1.2.2 --standalone + +#. To build the development version of ``PySide`` distribution, ignore the --version parameter: + + :: + + $ python2.7 setup.py bdist_wheel --qmake=/usr/bin/qmake-qt4 + + +Mac OS X: Installing PySide distribution +---------------------------------------- + +#. After the successful build, install the distribution with ``pip``: + + :: + + $ sudo pip2.7 install --use-wheel dist/PySide-1.2.2-cp27-none-linux-x86_64.whl + +#. Run the post-install script to finish the package configuration: + + :: + + $ sudo python2.7 pyside_postinstall.py -install + + +Mac OS X: Installing PySide distribution into ``virtual`` Python environment +---------------------------------------------------------------------------- + +#. Install latest ``virtualenv`` distribution: + + :: + + $ sudo pip2.7 virtualenv + +#. Use ``virtualenv`` to make a workspace: + + :: + + $ virtualenv-2.7 env + +#. Switch to the ``env`` directory: + + :: + + $ cd env + +#. Install the distribution with ``pip``: + + :: + + $ bin/pip2.7 install --use-wheel ../dist/PySide-1.2.2-cp27-none-linux-x86_64.whl + +#. Run the post-install script to finish the package configuration: + + :: + + $ bin/python bin/pyside_postinstall.py -install + + Building PySide on a Linux System (Ubuntu 12.04 - 14.04) ======================================================== -- cgit v1.2.3