[SciPy-user] Testing build before installing (numpy and scipy)

Stéfan van der Walt stefan@sun.ac...
Wed Apr 16 16:27:24 CDT 2008


Hi Warren

On 16/04/2008, Warren Weckesser <warren.weckesser@gmail.com> wrote:
> 1.  numpy's setup.py doesn't have an "uninstall" command.  Is that normal?
> What is the standard way to remove something that I installed using
> setup.py?  I want to clean out my Python2.4 broken installations.

Not as far as I know -- I always erase the directories by hand.

> 2.  Having just installed python 2.5.2, I ran "setup.py build" in the
> numpy-1.0.4 directory.  It generated lots of output, but I don't know if
> everything built correctly.  There are some error messages about
> _configtest.c having errors. Can I test the build without first installing
> it?

python setup.py install --prefix=${HOME}/test_install

Then

export PYTHONPATH=${HOME}/test_install/lib/python2.5/site/packages:${PYTHONPATH}

Now you can run Python, import numpy, and execute the test suite.

> 3. The instructions at
> http://www.scipy.org/Installing_SciPy/Mac_OS_X suggest that
> the command  "export MACOSX_DEPLOYMENT_TARGET=10.4" be given before building
> scipy for OSX 10.4.  It is not clear from those instructions if that macro
> is also used when building numpy.  I ran the build command twice, once
> before defining the variable and once after defining it, and it does change
> how numpy is built--well, it changes the names of some directories, anyway.
> Is this macro also supposed to be defined when building numpy?

I don't export that variable on my system, but I have very little
experience with building on OSX.

Cheers
Stéfan


More information about the SciPy-user mailing list