summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2019-07-25 19:34:26 -0700
committerGitHub <noreply@github.com>2019-07-25 19:34:26 -0700
commitc0868502a06cd3d5ef6492ac13499ee9028007df (patch)
tree25f053f8fe344f034259452fefbcc9d7ba7c383e
parent702c357536c23d8122fe152f0d86b9add1add6a0 (diff)
parent18b456b1dcb1dd2dcfda0fb332b55c165e1b304c (diff)
downloadnumpy-c0868502a06cd3d5ef6492ac13499ee9028007df.tar.gz
Merge pull request #14089 from Carreau/no-setuppy
DOC: Use `pip install .` where possible instead of calling setup.py
-rw-r--r--doc/source/dev/development_environment.rst5
-rw-r--r--doc/source/user/building.rst2
-rw-r--r--doc/source/user/c-info.python-as-glue.rst2
-rw-r--r--numpy/f2py/setup.py2
-rw-r--r--shippable.yml2
5 files changed, 5 insertions, 8 deletions
diff --git a/doc/source/dev/development_environment.rst b/doc/source/dev/development_environment.rst
index 1d119ebce..340f22026 100644
--- a/doc/source/dev/development_environment.rst
+++ b/doc/source/dev/development_environment.rst
@@ -90,13 +90,10 @@ Other build options
It's possible to do a parallel build with ``numpy.distutils`` with the ``-j`` option;
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``.
-
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}"