| 201 | | Now for something adventurous, installing the [http://packages.python.org/spyder/ spyder] python-IDE. (In the example below, sip and PyQt are installed with sudo privileges only because Chimera was installed with those privileges. If you install Chimera without sudo privileges, try to run {{{make install}}} commands instead of {{{sudo make install}}}.) |
| | 201 | Now for something adventurous, installing the [http://packages.python.org/spyder/ spyder] python-IDE. First, we need to install some dependencies, sip and [http://www.riverbankcomputing.co.uk/software/pyqt/intro !PyQt]. (In the example below, sip and !PyQt are installed with sudo privileges only because Chimera was installed with those privileges. If you install Chimera without sudo privileges, try to run {{{make install}}} commands instead of {{{sudo make install}}}.) |
| | 202 | |
| | 203 | First, this example is based on an Ubuntu linux system that had the following packages installed: |
| | 204 | {{{ |
| | 205 | $ dpkg -l | grep libqt4 |
| | 206 | ii libqt4-assistant 4:4.6.2-0ubuntu5 Qt 4 assistant module |
| | 207 | ii libqt4-dbus 4:4.6.2-0ubuntu5 Qt 4 D-Bus module |
| | 208 | ii libqt4-designer 4:4.6.2-0ubuntu5 Qt 4 designer module |
| | 209 | ii libqt4-dev 4:4.6.2-0ubuntu5 Qt 4 development files |
| | 210 | ii libqt4-help 4:4.6.2-0ubuntu5 Qt 4 help module |
| | 211 | ii libqt4-multimedia 4:4.6.2-0ubuntu5 Qt 4 Multimedia module |
| | 212 | ii libqt4-network 4:4.6.2-0ubuntu5 Qt 4 network module |
| | 213 | ii libqt4-opengl 4:4.6.2-0ubuntu5 Qt 4 OpenGL module |
| | 214 | ii libqt4-opengl-dev 4:4.6.2-0ubuntu5 Qt 4 OpenGL library development files |
| | 215 | ii libqt4-qt3support 4:4.6.2-0ubuntu5 Qt 3 compatibility library for Qt 4 |
| | 216 | ii libqt4-script 4:4.6.2-0ubuntu5 Qt 4 script module |
| | 217 | ii libqt4-scripttools 4:4.6.2-0ubuntu5 Qt 4 script tools module |
| | 218 | ii libqt4-sql 4:4.6.2-0ubuntu5 Qt 4 SQL module |
| | 219 | ii libqt4-sql-mysql 4:4.6.2-0ubuntu5 Qt 4 MySQL database driver |
| | 220 | ii libqt4-sql-sqlite 4:4.6.2-0ubuntu5 Qt 4 SQLite 3 database driver |
| | 221 | ii libqt4-svg 4:4.6.2-0ubuntu5 Qt 4 SVG module |
| | 222 | ii libqt4-test 4:4.6.2-0ubuntu5 Qt 4 test module |
| | 223 | ii libqt4-webkit 4:4.6.2-0ubuntu5 Qt 4 WebKit module |
| | 224 | ii libqt4-xml 4:4.6.2-0ubuntu5 Qt 4 XML module |
| | 225 | ii libqt4-xmlpatterns 4:4.6.2-0ubuntu5 Qt 4 XML patterns module |
| | 226 | $ dpkg -l | grep python-qt |
| | 227 | ii python-qt4 4.7.2-0ubuntu1 Python bindings for Qt4 |
| | 228 | ii python-qt4-dev 4.7.2-0ubuntu1 Development files for PyQt4 |
| | 229 | ii python-qt4-phonon 4.7.2-0ubuntu1 Python bindings for Phonon |
| | 230 | $ dpkg -l | grep qscintilla |
| | 231 | ii libqscintilla2-5 2.4.3-0ubuntu1 The Qt4 port of the Scintilla source code editing widget |
| | 232 | ii libqscintilla2-designer 2.4.3-0ubuntu1 Qt4 Designer plugin for QScintilla 2 |
| | 233 | ii libqscintilla2-dev 2.4.3-0ubuntu1 The Scintilla source code editing widget for Qt4, development fi |
| | 234 | ii libqscintilla2-doc 2.4.3-0ubuntu1 API documentation for QScintilla 2 |
| | 235 | ii python-qscintilla2 2.4.3-0ubuntu1 Python bindings for QScintilla 2 |
| | 236 | }}} |
| | 237 | |
| | 238 | OK, those packages were installed on the system, but some of them were not directly accessible to the Chimera python build. In this case, a solution was to download and build PyQt4 within the virtual environment, to satisfy dependencies for spyder. (I found it difficult to get the right download version for QScintilla2 to match the libraries installed on my Ubuntu system, but google searches eventually came up with an option.) |
| 219 | | }}} |
| 220 | | |
| 221 | | That should satisfy the dependencies for [http://packages.python.org/spyder/ spyder]. So, try to install spyder, like so: |
| 222 | | {{{ |
| 223 | | $ source ~/src/chimera-virtualenv/bin/activate |
| | 256 | (chimera-virtualenv)$ wget http://212.219.56.133/sites/www.ibiblio.org/gentoo/distfiles/QScintilla-gpl-2.4.3.tar.gz |
| | 257 | (chimera-virtualenv)$ tar zxvf QScintilla-gpl-2.4.3.tar.gz |
| | 258 | (chimera-virtualenv)$ cd QScintilla-gpl-2.4.3 |
| | 259 | (chimera-virtualenv)$ cd Python |
| | 260 | (chimera-virtualenv)$ python configure.py |
| | 261 | (chimera-virtualenv)$ make |
| | 262 | (chimera-virtualenv)$ sudo make install |
| | 263 | }}} |
| | 264 | |
| | 265 | That should satisfy the [http://packages.python.org/spyder/installation.html#dependencies dependencies for spyder]. Now try to install spyder using pip. |
| | 266 | {{{ |