Skip to content

Commit f1268b9

Browse files
waseem18Jon Wayne Parrott
authored andcommitted
Update "installing scientific packages" to reflect wheel availability for scientific packages (#455)
1 parent 3f97bec commit f1268b9

2 files changed

Lines changed: 27 additions & 43 deletions

File tree

‎source/guides/installing-scientific-packages.rst‎

Lines changed: 26 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
Installing Scientific Packages
55
==============================
66

7-
:Page Status: Incomplete
8-
:Last Reviewed: 2014-07-24
9-
107
.. contents:: Contents
118
:local:
129

@@ -22,23 +19,16 @@ for most of the software in the `scientific Python stack
2219
to interoperate with different FORTRAN libraries, and can take advantage
2320
of different levels of vectorised instructions available in modern CPUs.
2421

25-
Unfortunately, as of December 2013, given NumPy's current build and
26-
distribution model, the standard tools currently aren't quite up to the
27-
task of distributing pre-built NumPy binaries, as most users aren't going
28-
to know which version they need, and the ``wheel`` format currently doesn't
29-
allow the installer to make that decision on the user's behalf at install
30-
time.
31-
32-
It is expected that this situation will eventually be resolved either by
33-
future iterations of the standard tools providing full support for the
34-
intricacies of NumPy's current build and distribution process, or by the
35-
NumPy developers choosing one build variant as the "lowest acceptable
36-
common denominator" and publishing that as a wheel file on PyPI.
22+
Starting with version 1.10.4 of NumPy and version 1.0.0 of SciPy, pre-built
23+
32-bit and 64-bit binaries in the ``wheel`` format are available for all major
24+
operating systems (Windows, macOS, and Linux) on PyPI. Note, however, that on
25+
Windows, NumPy binaries are linked against the `ATLAS
26+
<http://www.netlib.org/atlas/>` BLAS/LAPACK library, restricted to SSE2
27+
instructions, so they may not provide optimal linear algebra performance.
3728

38-
In the meantime, however, there are a number of alternative options for
39-
obtaining scientific Python libraries (or any other Python libraries that
40-
require a compilation environment to install from source and don't provide
41-
pre-built wheel files on PyPI).
29+
There are a number of alternative options for obtaining scientific Python
30+
libraries (or any other Python libraries that require a compilation environment
31+
to install from source and don't provide pre-built wheel files on PyPI).
4232

4333

4434
Building from source
@@ -121,7 +111,7 @@ Spack
121111
designed to support multiple versions, configurations, platforms, and compilers.
122112
It was built to support the needs of large supercomputing centers and scientific
123113
application teams, who must often build software many different ways.
124-
Spack is not limited to Python; it can install packages for ``C``, ``C++``,
114+
Spack is not limited to Python; it can install packages for ``C``, ``C++``,
125115
``Fortran``, ``R``, and other languages. It is non-destructive; installing
126116
a new version of one package does not break existing installations, so many
127117
configurations can coexist on the same system.
@@ -137,21 +127,21 @@ be loaded and unloaded from the user's environment.
137127
The conda cross-platform package manager
138128
----------------------------------------
139129

140-
`Anaconda <https://store.continuum.io/cshop/anaconda/>`__ is a Python
141-
distribution published by Continuum Analytics. It is a stable collection of
142-
Open Source packages for big data and scientific use. About 100 are
143-
installed with Anaconda 2.2, and a total of 279 can be installed and
144-
updated from the Anaconda repository.
130+
`Anaconda <https://www.anaconda.com/download/>`_ is a Python distribution
131+
published by Continuum Analytics. It is a stable collection of Open Source
132+
packages for big data and scientific use. As of the 5.0 release of Anaconda,
133+
about 200 packages are installed by default, and a total of 400-500 can be
134+
installed and updated from the Anaconda repository.
145135

146-
``conda`` an open source (BSD licensed) package management system and
147-
environment management system included in Anaconda that allows users to
148-
install multiple versions of binary software packages and their dependencies,
149-
and easily switch between them. It is a cross-platform tool working on Windows,
136+
``conda`` is an open source (BSD licensed) package management system and
137+
environment management system included in Anaconda that allows users to install
138+
multiple versions of binary software packages and their dependencies, and
139+
easily switch between them. It is a cross-platform tool working on Windows,
150140
macOS, and Linux. Conda can be used to package up and distribute all kinds of
151-
packages, it is not limited to just Python packages. It has full support
152-
for native virtual environments. Conda makes environments first-class citizens,
153-
making it easy to create independent environments even for C libraries. It is
154-
written in Python, but is Python-agnostic. Conda manages Python itself as a
155-
package, so that `conda update python` is possible, in contrast to pip, which only
156-
manages Python packages. Conda is available in Anaconda and Miniconda
157-
(an easy-to-install download with just Python and conda).
141+
packages, it is not limited to just Python packages. It has full support for
142+
native virtual environments. Conda makes environments first-class citizens,
143+
making it easy to create independent environments even for C libraries. It is
144+
written in Python, but is Python-agnostic. Conda manages Python itself as a
145+
package, so that `conda update python` is possible, in contrast to pip, which
146+
only manages Python packages. Conda is available in Anaconda and Miniconda (an
147+
easy-to-install download with just Python and conda).

‎source/guides/tool-recommendations.rst‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Packaging Tool Recommendations
4646

4747
* Use the ``bdist_wheel`` :ref:`setuptools` extension available from the
4848
:ref:`wheel project <wheel>` to create :term:`wheels <Wheel>`. This is
49-
especially beneficial, if your project contains binary extensions. [7]_
49+
especially beneficial, if your project contains binary extensions.
5050

5151
* Use `twine <https://pypi.python.org/pypi/twine>`_ for uploading distributions
5252
to :term:`PyPI <Python Package Index (PyPI)>`.
@@ -104,11 +104,5 @@ the migration, and the required settings for opting in to the migration early.
104104
:ref:`setuptools` in June 2013, thereby making setuptools the default
105105
choice for packaging.
106106
107-
.. [7] :term:`PyPI <Python Package Index (PyPI)>` currently only allows
108-
uploading Windows and macOS wheels. Wheels uploaded for Windows and
109-
macOS should be compatible with the binary installers provided for
110-
download from http://python.org. Binary wheels for Linux distributions
111-
can be provided by using ``manylinux`` wheels as outlined in :pep:`513`.
112-
113107
.. _distribute: https://pypi.python.org/pypi/distribute
114108
.. _venv: https://docs.python.org/3/library/venv.html

0 commit comments

Comments
 (0)