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 | |
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.
-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 | ||||
-rw-r--r-- | numpy/f2py/setup.py | 2 | ||||
-rw-r--r-- | shippable.yml | 2 |
5 files changed, 6 insertions, 6 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 diff --git a/numpy/f2py/setup.py b/numpy/f2py/setup.py index c0c50ce54..a8c1401aa 100644 --- a/numpy/f2py/setup.py +++ b/numpy/f2py/setup.py @@ -3,7 +3,7 @@ setup.py for installing F2PY Usage: - python setup.py install + pip install . Copyright 2001-2005 Pearu Peterson all rights reserved, Pearu Peterson <pearu@cens.ioc.ee> diff --git a/shippable.yml b/shippable.yml index 88e131f48..fe9138520 100644 --- a/shippable.yml +++ b/shippable.yml @@ -43,7 +43,7 @@ build: # build first and adjust PATH so f2py is found in scripts dir # use > 1 core for build sometimes slows down a fair bit, # other times modestly speeds up, so avoid for now - - python setup.py install + - pip install . - extra_directories=($SHIPPABLE_REPO_DIR/build/*scripts*) - extra_path=$(printf "%s:" "${extra_directories[@]}") - export PATH="${extra_path}${PATH}" |