I've got python from repos. I want to install python-numpy, python-scipy and python-matplotlib. python-numpy and python-scipy I have compiled from source for speed, python-matplotlib I don't care about.
python-matplotlib depends on python-numpy which in turn depends on libblas3gf (BLAS library) and liblapack3gf (LAPACK library). I have compiled all three of these dependencies from source and installed them to $HOME/local/[lib|include|bin] using the install scripts provided with the sources.
Now I want to install matplotlib from the repos so I lock out the above three packages with
sudo aptitude hold python-numpy libblas3gf liblapack3gf
. When I
sudo apt-get install python-matplotlib
all of the (above) dependencies are installed with it. I've tried locking out the packages in synaptic, both with and without simultaneous aptitude hold, to no avail.
I realise I could just compile matplotlib from source and everything would be fine but I use plenty of other programs which also use those packages (and hence have the above three dependencies) and I don't want to have to install everything from source.
I'm trying to work out how to create a .deb package from the sources I have but I haven't had much time to have a good go at it.
Thanks for the help!