Merge branch 'posativ-improve-osx-install'

This commit is contained in:
Florian Bruhin 2014-12-20 14:10:35 +01:00
commit 23ee01a747

View File

@ -110,40 +110,26 @@ system-wide Qt5/PyQt5 installations are used in the virtualenv.
On OS X On OS X
------- -------
Running qutebrowser on OS X requires compiling PyQt5 by hand. These steps have To install qutebrowser on OS X, you'll want a package manager, e.g.
been tested on OS X Mavericks: http://brew.sh/[Homebrew] or https://www.macports.org/[MacPorts]. Also make
sure, you have https://itunes.apple.com/en/app/xcode/id497799835[XCode]
installed to compile PyQt5 in a later step.
* Install XCode from the Appstore ----
* Open a Terminal $ brew install python3 pyqt5
* Run `xcode-select --install` $ pip3.4 install qutebrowser
* Install the XCode commandline tools ----
* Run `sudo /usr/bin/xcodebuild` and accept the license.
* http://www.qt.io/download-open-source/[Download] and run the Qt5 installer. if you are using Homebrew. For MacPorts, run:
If you want, you can deselect Android/iOS when selecting the components to be
installed. ----
* http://www.python.org/downloads/[Download] and run the Python 3 $ sudo port install python34 py34-jinja2 asciidoc py34-pygments py34-pyqt5
installer. $ sudo pip3.4 install qutebrowser
* Download http://www.riverbankcomputing.com/software/sip/download[SIP] and ----
http://www.riverbankcomputing.com/software/pyqt/download5[PyQt5] from Riverbank Computing
* Open a Terminal and use `cd ~/Downloads` to get to the download directory. The preferences for qutebrowser are stored in
* Use `tar xzvf sip-*.tar` to extract SIP and `cd sip-*` to change into the `~/Library/Preferences/qutebrowser`, the application data is stored in
SIP directory `~/Library/Application Support/qutebrowser`.
* Run `python3 configure.py`, `make` and `sudo make install`.
* Use `cd ~/Downloads` to get back to the download directory.
* Use `tar xvf PyQt-*.tar` to extract PyQt and `cd PyQt-*` to change into the
PyQt directory.
* Run `sed -i -e "s/qmake_QT=\['webkit', 'network'\]/qmake_QT=['webkit',
'network', 'printsupport']/" configure.py`
* Run `sed -i -e "s/qmake_QT=\['webkitwidgets'\]/qmake_QT=['webkitwidgets',
'printsupport']/" configure.py`
* Run `python3 configure.py --qmake ~/Qt/5.4/clang_64/bin/qmake --sip
/Library/Frameworks/Python.framework/Versions/3.4/bin/sip` and accept
the license. If you manage your Python installation with http://brew.sh[Homebrew]
this step will be something like `python3 configure.py --qmake ~/Qt/5.4/clang_64/bin/qmake
--sip /usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/bin/sip`...
watch where the sip install (above) puts its components.
* Run `make` and `sudo make install`.
* Run `python3 setup.py install` to install all other dependencies
Packagers Packagers
--------- ---------