after building from source, how to register numpy with synaptic?
Like the subject says, is there a way to register numpy with synaptic after building numpy from source? I would like to snag matplotlib from the ubuntu repos, but it won't let me without also getting numpy and its dependency, which would ruin all the work I did building numpy on my machine. This is probably a linux n00b question, but well, that's what I am :) Chris
On Fri, Apr 24, 2009 at 21:11, Chris Colbert <sccolbert@gmail.com> wrote:
Like the subject says, is there a way to register numpy with synaptic after building numpy from source?
I would like to snag matplotlib from the ubuntu repos, but it won't let me without also getting numpy and its dependency, which would ruin all the work I did building numpy on my machine.
This is probably a linux n00b question, but well, that's what I am :)
You'll want to ask on an Ubuntu or Debian forum. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
On Fri, Apr 24, 2009 at 8:11 PM, Chris Colbert <sccolbert@gmail.com> wrote:
Like the subject says, is there a way to register numpy with synaptic after building numpy from source?
I would like to snag matplotlib from the ubuntu repos, but it won't let me without also getting numpy and its dependency, which would ruin all the work I did building numpy on my machine.
Why not build matplotlib from source? Chuck
On 24-Apr-09, at 10:11 PM, Chris Colbert wrote:
Like the subject says, is there a way to register numpy with synaptic after building numpy from source?
I would like to snag matplotlib from the ubuntu repos, but it won't let me without also getting numpy and its dependency, which would ruin all the work I did building numpy on my machine.
I'd recommend building MPL from source too, as every MPL release makes leaps and bounds and the packages are likely a bit stale. But most package managers allow you to force installs without checking dependencies, as in "I know what I'm doing, just install it". With apt-get I believe you'd have to download the .deb package and do something like sudo dpkg -i --force-depends matplotlib<whatever>.deb David
On Fri, Apr 24, 2009 at 10:11:07PM -0400, Chris Colbert wrote:
Like the subject says, is there a way to register numpy with synaptic after building numpy from source?
Don't play with the system's packaging system unless you really know what you are doing. Just install the numpy you are building outside of /usr/lib/... (you should never be installing home-build stuff in there). For instance install it in /usr/local: sudo python setup.py install --prefix /usr/local Now it will override the system's numpy. So you can install matplotlib, which will drag along the system's numpy, but you won't see it. On a side note, I tend to install home-built packages that overide system packages only in my home. I have a $HOME/usr directory, with a small directory hierarchy (usr/lib, usr/bin, ...), it is added in my PATH and PYTHONPATH, and I install there. Gaël
On Apr 25, 2009, at 5:36 AM, Gael Varoquaux wrote:
On Fri, Apr 24, 2009 at 10:11:07PM -0400, Chris Colbert wrote:
Like the subject says, is there a way to register numpy with synaptic after building numpy from source?
Don't play with the system's packaging system unless you really know what you are doing.
Just install the numpy you are building outside of /usr/lib/... (you should never be installing home-build stuff in there).
One link: http://www.doughellmann.com/projects/virtualenvwrapper/ I became a fan of virtualenvs, which lets you install different packages (not always compatible) without messing up the system's Python. Quite useful for tests and/or having multiple numpy versions in parallel.
For instance install it in /usr/local:
sudo python setup.py install --prefix /usr/local
Now it will override the system's numpy. So you can install matplotlib, which will drag along the system's numpy, but you won't see it.
On a side note, I tend to install home-built packages that overide system packages only in my home. I have a $HOME/usr directory, with a small directory hierarchy (usr/lib, usr/bin, ...), it is added in my PATH and PYTHONPATH, and I install there.
Gaël _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
participants (6)
-
Charles R Harris
-
Chris Colbert
-
David Warde-Farley
-
Gael Varoquaux
-
Pierre GM
-
Robert Kern