Note that for checking the validity of the package you need to add the key
Note that for checking the validity of the package you need to add the key
used for signing to your user's keyring via::
used for signing to your user's keyring via::
...
@@ -113,6 +134,8 @@ Kwant and its dependencies both via the `homebrew <http://brew.sh>`_ and the
...
@@ -113,6 +134,8 @@ Kwant and its dependencies both via the `homebrew <http://brew.sh>`_ and the
Mac OS X: homebrew
Mac OS X: homebrew
==================
==================
*(This section needs to be updated for Python 3.)*
homebrew is a recent addition to the package managers on Mac OS X. It is
homebrew is a recent addition to the package managers on Mac OS X. It is
lightweight, tries to be as minimalistic as possible and give the user
lightweight, tries to be as minimalistic as possible and give the user
freedom than Macports. We recommend this option if you have no preferences.
freedom than Macports. We recommend this option if you have no preferences.
...
@@ -182,6 +205,8 @@ Notes:
...
@@ -182,6 +205,8 @@ Notes:
Mac OS X: MacPorts
Mac OS X: MacPorts
==================
==================
*(This section needs to be updated for Python 3.)*
MacPorts is a full-fledged package manager that recreates a whole Linux-like
MacPorts is a full-fledged package manager that recreates a whole Linux-like
environment on your Mac.
environment on your Mac.
...
@@ -268,8 +293,8 @@ provided by Christoph Gohlke. To install Kwant on Windows
...
@@ -268,8 +293,8 @@ provided by Christoph Gohlke. To install Kwant on Windows
5. Reboot your computer.
5. Reboot your computer.
6. Download the necessary packages (with the ending ``.whl``) for your
6. Download the necessary packages (with the ending ``.whl``) for your
operating system (32 or 64 bit) and Python version (e.g. ``cp27`` for Python
operating system (32 or 64 bit) and Python version (e.g. ``cp34`` for Python
2.7) from the website of `Christoph Gohlke
3.4) from the website of `Christoph Gohlke
<http://www.lfd.uci.edu/~gohlke/pythonlibs/>`_. For Kwant, we recommend to download at least `NumPy <http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy>`_, `SciPy <http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy>`_, `Matplotlib <http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib>`_, `Nose <http://www.lfd.uci.edu/~gohlke/pythonlibs/#nose>`_, `Tinyarray <http://www.lfd.uci.edu/~gohlke/pythonlibs/#tinyarray>`_, and `Kwant <http://www.lfd.uci.edu/~gohlke/pythonlibs/#kwant>`_ itself.
<http://www.lfd.uci.edu/~gohlke/pythonlibs/>`_. For Kwant, we recommend to download at least `NumPy <http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy>`_, `SciPy <http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy>`_, `Matplotlib <http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib>`_, `Nose <http://www.lfd.uci.edu/~gohlke/pythonlibs/#nose>`_, `Tinyarray <http://www.lfd.uci.edu/~gohlke/pythonlibs/#tinyarray>`_, and `Kwant <http://www.lfd.uci.edu/~gohlke/pythonlibs/#kwant>`_ itself.
7. Now open a command prompt with administrator rights, as described in
7. Now open a command prompt with administrator rights, as described in
...
@@ -278,13 +303,52 @@ provided by Christoph Gohlke. To install Kwant on Windows
...
@@ -278,13 +303,52 @@ provided by Christoph Gohlke. To install Kwant on Windows
In this new command prompt window, execute ::
In this new command prompt window, execute ::
pip install <filename>
pip3 install --no-deps *.whl
for each of the downloaded files (replacing ``<filename>`` with it).
(This will install all the wheel-files in the current directory.)
Now you are done, you can ``import kwant`` from within Python scripts.
Now you are done, you can ``import kwant`` from within Python scripts.
(Note that many other userful scientific packages are available in Gohlke’s
(Note that many other useful scientific packages are available in Gohlke’s
repository. For example, you might want to install `IPython
repository. For example, you might want to install `IPython
<http://www.lfd.uci.edu/~gohlke/pythonlibs/#ipython>`_ and its various
<http://www.lfd.uci.edu/~gohlke/pythonlibs/#ipython>`_ and its various
dependencies so that you can use the `IPython notebook <http://ipython.org/notebook.html>`_.)
dependencies so that you can use the `IPython notebook <http://ipython.org/notebook.html>`_.)
Automatic installation using ``pip``
====================================
The most recent stable version of Kwant can be downloaded and installed
directly from the `Python package index <https://pypi.python.org/>`_ using
Python’s “pip“ tool::
sudo pip3 install kwant
Pip can be also used to directly install the most recent development version