diff options
author | Matthias Bussonnier <mbussonnier@ucmerced.edu> | 2019-07-23 12:10:31 -0700 |
---|---|---|
committer | Matthias Bussonnier <mbussonnier@ucmerced.edu> | 2019-07-23 12:15:10 -0700 |
commit | 2bffd407c22f923e2aa8b7931914f222d4eecd69 (patch) | |
tree | 51d44848896f34e65a1d82ff9a043b52eec37406 /doc/source | |
parent | f2d116aaabce9df3bef4dca51ce0643a9ec43527 (diff) | |
download | numpy-2bffd407c22f923e2aa8b7931914f222d4eecd69.tar.gz |
Doc: Use `pip install .` where possible instead of calling setup.py
pip will itself call setup.py install with the rights options.
Diffstat (limited to 'doc/source')
-rw-r--r-- | doc/source/dev/development_environment.rst | 4 | ||||
-rw-r--r-- | doc/source/user/building.rst | 2 | ||||
-rw-r--r-- | doc/source/user/c-info.python-as-glue.rst | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/doc/source/dev/development_environment.rst b/doc/source/dev/development_environment.rst index 1d119ebce..7ef2d485c 100644 --- a/doc/source/dev/development_environment.rst +++ b/doc/source/dev/development_environment.rst @@ -91,12 +91,12 @@ It's possible to do a parallel build with ``numpy.distutils`` with the ``-j`` op see :ref:`parallel-builds` for more details. In order to install the development version of NumPy in ``site-packages``, use -``python setup.py install --user``. +``pip install . --user``. A similar approach to in-place builds and use of ``PYTHONPATH`` but outside the source tree is to use:: - $ python setup.py install --prefix /some/owned/folder + $ pip install . --prefix /some/owned/folder $ export PYTHONPATH=/some/owned/folder/lib/python3.4/site-packages diff --git a/doc/source/user/building.rst b/doc/source/user/building.rst index a13e1160a..26f251151 100644 --- a/doc/source/user/building.rst +++ b/doc/source/user/building.rst @@ -56,7 +56,7 @@ Basic Installation To install NumPy run:: - python setup.py install + pip install . To perform an in-place build that can be run from the source folder run:: diff --git a/doc/source/user/c-info.python-as-glue.rst b/doc/source/user/c-info.python-as-glue.rst index 8b1bc9a98..7b9b096af 100644 --- a/doc/source/user/c-info.python-as-glue.rst +++ b/doc/source/user/c-info.python-as-glue.rst @@ -387,7 +387,7 @@ distribution of the ``add.f`` module (as part of the package Installation of the new package is easy using:: - python setup.py install + pip install . assuming you have the proper permissions to write to the main site- packages directory for the version of Python you are using. For the |