473,320 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Upgrading a largish group of packages w/ distutils


At work I need to upgrade numpy, scipy, ipython and matplotlib. They need
to be done all at once. All have distutils setups but the new versions and
the old versions are incompatible with one another as a group because
numpy's apis changed. Ideally, I could just do something like

cd ~/src
cd numpy
python setup.py install
cd ../scipy
python setup.py install
cd ../matplotlib
python setup.py install
cd ../ipython
python setup.py install

however, even if nothing goes awry it leaves me with a fair chunk of time
where the state of the collective system is inconsistent (new numpy, old
everything else). I'm wondering... Can I stage the installs to a different
directory tree like so:

export PYTHONPATH=$HOME/local/lib/python-2.4/site-packages
cd ~/src
cd numpy
python setup.py install --prefix=$PYTHONPATH
cd ../scipy
python setup.py install --prefix=$PYTHONPATH
cd ../matplotlib
python setup.py install --prefix=$PYTHONPATH
cd ../ipython
python setup.py install --prefix=$PYTHONPATH

That would get them all built as a cohesive set. Then I'd repeat the
installs without PYTHONPATH:

unset PYTHONPATH
cd ~/src
cd numpy
python setup.py install
cd ../scipy
python setup.py install
cd ../matplotlib
python setup.py install
cd ../ipython
python setup.py install

Presumably the compilation (the time-consuming part) is all
location-independent, so the second time the build_ext part should be fast.

Can anyone comment on the feasibility of this approach? I guess what I'm
wondering is what dependencies there are on the installation directory.

Thx,

Skip
May 31 '07 #1
0 935

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Craig D | last post by:
I got really tired of unpacking a distutils package, installing then cleaning up. So I wrote distinstall.py - it reads a zip file, unpacks it, installs the bits and cleans up. I've only used it on...
5
by: Fuzzyman | last post by:
Python 2.4 is built with Microsoft Visiual C++ 7. This means that it uses msvcr7.dll, which *isn't* a standard part of the windows operating system. This means that if you build a windows installer...
1
by: Mage | last post by:
Hello, I read about modules and packages in the tutorial. I think I understand how to use packages and modules, even I know how to create a module (as far I understand it's a simple .py) file ,...
3
by: Rick Muller | last post by:
I need some distutils help. I currently run a python library (PyQuante) that, until recently, had all of its modules in a single directory, called "PyQuante". The setup command in my setup.py...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.