Skip to content
Snippets Groups Projects
Commit 0ea19bec authored by Anton Akhmerov's avatar Anton Akhmerov Committed by Christoph Groth
Browse files

instruct to use pip for linux source builds

parent ef2b2f0a
No related branches found
Tags v1.2.0a0
No related merge requests found
...@@ -336,11 +336,11 @@ Kwant can be built and installed following the `usual Python conventions ...@@ -336,11 +336,11 @@ Kwant can be built and installed following the `usual Python conventions
<http://docs.python.org/install/index.html>`_ by running the following commands <http://docs.python.org/install/index.html>`_ by running the following commands
in the root directory of the Kwant distribution. :: in the root directory of the Kwant distribution. ::
python setup.py build pip install .
python setup.py install
Depending on your system, you might have to run the second command with Depending on your system, you might have to run the second command with
administrator privileges (e.g. prefixing it with ``sudo``). administrator privileges (e.g. prefixing it with ``sudo``). If you use Python
older than 2.7.9, see `pip installation instructions <https://docs.python.org/2/installing/#install-pip-in-versions-of-python-prior-to-python-2-7-9>`_.
After installation, tests can be run with:: After installation, tests can be run with::
...@@ -366,31 +366,15 @@ root. ...@@ -366,31 +366,15 @@ root.
2. Unpack Tinyarray, enter its directory. To build and install, run :: 2. Unpack Tinyarray, enter its directory. To build and install, run ::
python setup.py build sudo pip install .
sudo python setup.py install
3. Inside the Kwant source distribution's root directory run :: 3. Inside the Kwant source distribution's root directory run ::
python setup.py build sudo pip install .
sudo python setup.py install
By default the package will be installed under ``/usr/local``. You can
change this using the ``--prefix`` option, e.g.::
sudo python setup.py install --prefix=/opt
If you would like to install Kwant into your home directory only you can use ::
python setup.py install --home=~
This does not require root privileges. If you install Kwant in this way
be sure to tell python where to find it. This can be done by setting the
``PYTHONPATH`` environment variable::
export PYTHONPATH=$HOME/lib/python
You can make this setting permanent by adding this line to the file By default the package will be installed under ``/usr/local``. Type ``pip help
``.bashrc`` (or equivalent) in your home directory. install`` for installation options and see `pip documentation
<https://pip.readthedocs.org>`_ for a detailed description of ``pip``.
Mac OS X: MacPorts Mac OS X: MacPorts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment