Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Upstream source code for dependencies
branch: master

Merge pull request #1 from certik/patch-1

README: fix spelling mistakes
latest commit 15ea2a9b57
@rgommers rgommers authored


This directory contains the sources and tools necessary for building mandatory
dependencies of numpy/lapack, with a special focus on Windows.

The directory is organized as followed:
        * src: sources of the dependencies
        * tools: various scripts to build the binaries of the dependencies

In Particular, the tools directory contains:
        * a script to build blas/lapack on Win32 from a configuration
        * basic.nsi: a NSIS script to build an installer for blas/lapack under
        different architectures.

The tool


cygwin with make, gcc, g77 and python

How to use:

python tools/ tools/sse3.cfg

Will build a blas/lapack using configuration in tools/sse3.cfg. In particular,
it contains informations on whether to build atlas or not, which fortran
compiler to use, etc...

The basic.nsi script

You need NSIS to use it: You also need a
small plugin cpu_caps, to tell NSIS whether the running CPU supports SSE2,
SSE3, etc...

It will look for binaries in the binaries directory: one directory per arch. A
subdir mingw32 is used for differentiating with the not-yet supported Win64.


Although the binaries themselves have to be built on windows (ATLAS is not
cross-compilable AFAIK), the installer itself can be built under linux. Debian
contains nsis ported on Linux:

makensis tools/basic.nsis


The script is really basic. It does not handle failure well, and it
may be difficult to interrupt (windows idiosyncrasies wrt process management
and lack of signals do not help; add cygwin on the top of it to make things
more complex).

The only solution I can see would be to use ctypes to use windows specific
ProcessTerminate. To stop atlas build is not easy either: even from cygwin
shell, you cannot stop it easily. The easiest way I am aware of is to kill the
AtlasTee.exe process (from cygwin or from the windows TaksManager).

For this reason, for now, the always starts from scratch. A better
solution would be to use a build system like rake or scons. But rake would mean
more dependencies, and scons is too slow.
Something went wrong with that request. Please try again.