1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
================================
Development install on windows
================================
The easy way - a super-package
------------------------------
The easiest way to get the dependencies is to install PythonXY_ or the
`Enthought Tool Suite`_ . This gives you MinGW_, Python_, Numpy_,
Scipy_, ipython_ and matplotlib_ (and much more).
The hard way - by components
----------------------------
If instead you want to do it by component, try the instructions below.
Requirements:
* Download and install MinGW_
* Download and install the windows binary for Python_
* Download and install the Numpy_ and Scipy_ binaries
* Download and install Sympy_
Options:
* Download and install ipython_, being careful to follow the windows
installation instructions
* Download and install matplotlib_
Alternatively, if you are very brave, you may want to install numpy / scipy from
source - see our maybe out of date :ref:`windows_scipy_build` for details.
Getting and installing NIPY
---------------------------
You will next need to get the NIPY code via version control:
* Download and install the windows binary for git_
* Go to the windows menu, find the ``git`` menu, and run ``git`` in a
windows terminal.
You should now be able to follow the instructions in
:ref:`trunk_download`, but with the following modifications:
Running the build / install
---------------------------
Here we assume that you do *not* have the Microsoft visual C tools, you
did not use the ETS_ package (which sets the compiler for you) and *are*
using a version of MinGW_ to compile NIPY.
First, for the ``python setup.py`` steps, you will need to add the
``--compiler=mingw32`` flag, like this::
python setup.py build --compiler=mingw32 install
Note that, with this setup you cannot do inplace (developer) installs
(like ``python setup.py build_ext --inplace``) because of a six-legged
python packaging feature that does not allow the compiler options (here
``--compiler=mingw32``) to be passed from the ``build_ext`` command.
If you want to be able to do that, add these lines to your ``distutils.cfg`` file ::
[build]
compiler=mingw32
[config]
compiler = mingw32
See http://docs.python.org/install/#inst-config-files for details on
this file. After you've done this, you can run the standard ``python
setup.py build_ext --inplace`` command.
The command line from Windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The default windows XP command line ``cmd`` is very basic. You might
consider using the Cygwin_ bash shell, or you may want to use the
ipython_ shell to work in. For system commands use the ``!`` escape,
like this, from the ipython prompt::
!python setup.py build --compiler=mingw32
.. include:: ../../links_names.txt
|