[pypy-commit] pypy.org extradoc: Complete the NumPy 2-paragraph instructions and link more clearly to

arigo noreply at buildbot.pypy.org
Wed Feb 11 17:00:21 CET 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: extradoc
Changeset: r566:0ef10b189227
Date: 2015-02-11 17:00 +0100
http://bitbucket.org/pypy/pypy.org/changeset/0ef10b189227/

Log:	Complete the NumPy 2-paragraph instructions and link more clearly to
	numpy/pypy.

diff --git a/download.html b/download.html
--- a/download.html
+++ b/download.html
@@ -213,10 +213,9 @@
 <p>NumPy is an exception to the rule that most packages work without
 changes.  The “numpy” module needs to be installed from <a class="reference external" href="https://bitbucket.org/pypy/numpy">our own
 repository</a> rather than from the official source.</p>
-<p>If you have pip (the command-line assumes that it finds the pip
-belonging to PyPy, not the one from CPython):</p>
+<p>If you have pip:</p>
 <pre class="literal-block">
-pip install git+https://bitbucket.org/pypy/numpy.git
+pypy -m pip install git+https://bitbucket.org/pypy/numpy.git
 </pre>
 <p>Alternatively, the direct way:</p>
 <pre class="literal-block">
@@ -224,8 +223,13 @@
 cd numpy
 pypy setup.py install
 </pre>
+<p>If you installed to a system directory, you need to also run this once:</p>
+<pre class="literal-block">
+sudo pypy -c 'import numpy'
+</pre>
 <p>Note that NumPy support is still a work-in-progress, many things do not
-work and those that do may not be any faster than NumPy on CPython.</p>
+work and those that do may not be any faster than NumPy on CPython.
+For further instructions see <a class="reference external" href="https://bitbucket.org/pypy/numpy">the pypy/numpy repository</a>.</p>
 </div>
 <div class="section" id="building-from-source">
 <span id="translate"></span><h1>Building from source</h1>
diff --git a/source/download.txt b/source/download.txt
--- a/source/download.txt
+++ b/source/download.txt
@@ -202,10 +202,9 @@
 
 .. __: https://bitbucket.org/pypy/numpy
 
-If you have pip (the command-line assumes that it finds the pip
-belonging to PyPy, not the one from CPython)::
+If you have pip::
 
-    pip install git+https://bitbucket.org/pypy/numpy.git
+    pypy -m pip install git+https://bitbucket.org/pypy/numpy.git
 
 Alternatively, the direct way::
 
@@ -213,8 +212,16 @@
     cd numpy
     pypy setup.py install
 
+If you installed to a system directory, you need to also run this once::
+
+    sudo pypy -c 'import numpy'
+
 Note that NumPy support is still a work-in-progress, many things do not
 work and those that do may not be any faster than NumPy on CPython.
+For further instructions see `the pypy/numpy repository`__.
+
+.. __: https://bitbucket.org/pypy/numpy
+
 
 .. _translate:
 


More information about the pypy-commit mailing list