From c62d7cbac0487a787990de0d4738167ed9bf443d Mon Sep 17 00:00:00 2001 From: Roman Lacko Date: Wed, 6 Nov 2013 22:27:41 +0100 Subject: Update README --- README.rst | 127 ++++++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 113 insertions(+), 14 deletions(-) (limited to 'README.rst') diff --git a/README.rst b/README.rst index 8610fe400..98018ccdd 100644 --- a/README.rst +++ b/README.rst @@ -174,24 +174,12 @@ Installing prerequisities $ sudo apt-get install python2.7-dev -#. Install Qt 4.8 libraries: +#. Install Qt SDK: :: $ sudo apt-get install qt-sdk -#. Install cmake: - - :: - - $ sudo apt-get install cmake - -#. Install git: - - :: - - $ sudo apt-get install git - #. Install latest `setuptools` distribution into the Python you installed in the first step: download `ez_setup.py `_ and run it using @@ -200,6 +188,7 @@ Installing prerequisities :: + $ wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py $ sudo python2.7 ez_setup.py Building PySide distribution @@ -263,7 +252,7 @@ Installing PySide distribution into ``virtual`` Python environment :: - $ sudo virtualenv-2.7 --no-site-packages env + $ virtualenv-2.7 --no-site-packages env #. Switch to the ``env`` directory: @@ -283,6 +272,116 @@ Installing PySide distribution into ``virtual`` Python environment $ bin/python bin/pyside_postinstall.py -install +Building PySide on a UNIX System (Ubuntu 13.10) +=============================================== + +Installing prerequisities +------------------------- + +#. Install Python 3.3 header files and a static library: + + :: + + $ sudo apt-get install python3.3-dev + +#. Install Qt SDK: + + :: + + $ sudo apt-get install qt-sdk + +#. Install latest `setuptools` distribution into the Python you + installed in the first step: download `ez_setup.py + `_ and run it using + the ``python`` interpreter of your Python 3.3 installation using a + command prompt: + + :: + + $ wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py + $ sudo python3.3 ez_setup.py + +Building PySide distribution +---------------------------- + +#. 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: + + :: + + $ python3.3 setup.py bdist_egg --qmake=/usr/bin/qmake-qt4 --version=1.2.1 + +#. Optionally you can build standalone version of distribution with embedded Qt libs: + + :: + + $ python3.3 setup.py bdist_egg --standalone --qmake=/usr/bin/qmake-qt4 --version=1.2.1 + +#. To build the development version of ``PySide`` distribution, ignore the --version parameter: + + :: + + $ python3.3 setup.py bdist_egg --qmake=/usr/bin/qmake-qt4 + +Installing PySide distribution +------------------------------ + +#. After the successful build, install the distribution with easy_install: + + :: + + $ sudo easy_install-3.3 dist/PySide-1.2.1-py3.3-linux-x86_64.egg + +#. Run the post-install script to finish the package configuration: + + :: + + $ sudo python3.3 pyside_postinstall.py -install + +Installing PySide distribution into ``virtual`` Python environment +------------------------------------------------------------------ + +#. Install latest `virtualenv` distribution: + + :: + + $ sudo easy_install-3.3 virtualenv + +#. Use `virtualenv` to make a workspace: + + :: + + $ virtualenv-3.3 --no-site-packages env + +#. Switch to the ``env`` directory: + + :: + + $ cd env + +#. Install the distribution with easy_install: + + :: + + $ bin/easy_install ../dist/PySide-1.2.1-py3.3-linux-x86_64.egg + +#. Run the post-install script to finish the package configuration: + + :: + + $ bin/python bin/pyside_postinstall.py -install + PySide Setup Script command line options ======================================== -- cgit v1.2.3