Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Note on installing couchapp on OS X Sierra #240

Merged
merged 3 commits into from Nov 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 8 additions & 5 deletions README.rst
Expand Up @@ -43,9 +43,10 @@ connectivity.
Installation
------------

Couchapp requires Python 2.6 or greater. Couchapp is most easily installed
using the latest versions of the standard python packaging tools, setuptools
and pip. They may be installed like so::
Couchapp requires Python 2.6 or greater but not in Python3.
Couchapp is most easily installed using the latest versions of the standard
python packaging tools, ``setuptools`` and ``pip``.
They may be installed like so::

$ curl -O https://bootstrap.pypa.io/get-pip.py
$ sudo python get-pip.py
Expand All @@ -54,9 +55,11 @@ Installing couchapp is then simply a matter of::

$ pip install couchapp

On OSX 10.6/10.7 you may need to set ARCH_FLAGS::
or this way if you cannot access the root (or due to SIP on macOS),
then find the executable at ``~/.local/bin``.
For more info about ``--user``, please checkout ``pip help install``::

$ env ARCHFLAGS="-arch i386 -arch x86_64" pip install couchapp
$ pip install --user couchapp

To install/upgrade a development version of couchapp::

Expand Down
57 changes: 47 additions & 10 deletions docs/couchapp/install.rst
Expand Up @@ -45,7 +45,7 @@ To install/upgrade development version:


Installing in a sandboxed environment
---------------------------------------
-------------------------------------

If you want to work in a sandboxed environment which is recommended if
you don't want to not *pollute* your system, you can use `virtualenv
Expand Down Expand Up @@ -82,23 +82,60 @@ Using CouchApp Standalone executable
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Download
`couchapp-1.0.0-macosx.zip <https://github.com/downloads/couchapp/couchapp/couchapp-1.0.0-macosx.zip>`_
`couchapp-1.0.0-macosx.zip
<https://github.com/downloads/couchapp/couchapp/couchapp-1.0.0-macosx.zip>`_
on `Github <http://github.com/>`_ then double-click on the installer.


Using Homebrew
~~~~~~~~~~~~~~
Using `Homebrew`_
~~~~~~~~~~~~~~~~~

.. _Homebrew: http://brew.sh/

To install easily couchapp on Mac OS X, it may be easier to use
`Homebrew <http://github.com/mxcl/homebrewbrew>`_ to install ``pip``.
`Homebrew`_ to install ``pip``.

Once you `installed
Homebrew <http://wiki.github.com/mxcl/homebrew/installation>`_, do:
Once you installed `Homebrew`_,
issue ``brew search pip`` and will get following message:

::
Homebrew provides pip via: `brew install python`. However you will then
have two Pythons installed on your Mac, so alternatively you can install
pip via the instructions at:
https://pip.readthedocs.io/en/stable/instal

I will recommend that just install python from `Homebrew`_,
because you will usually get a newer version of python than system base's::

$ brew install python

And let's check the installation of python::

$ where python
/usr/local/bin/python
/usr/bin/python

$ where pip
/usr/local/bin/pip

The path prefixed with ``/usr/local/`` is from `Homebrew`_.
Everythings look fine, and issue::

$ pip install couchapp

``pip`` will install packages into
``~/Library/Python/2.7/lib/python/site-packages`` usually.
Also you can verify the location via::

$ pip show --files couchapp

Now, the executable is here::

~/Library/Python/2.7/bin/couchapp

$ brew install pip
$ env ARCHFLAGS="-arch i386 -arch x86_64" pip install couchapp
Don't forget to add ``~/Library/Python/2.7/bin`` to your ``PATH``.
There is more discussion about installation on macOS, please checkout
`issue 240 <https://github.com/couchapp/couchapp/pull/240>`_ for
more information.


Installing on Debian/Ubuntu
Expand Down