Use checkinstall to build a deb file and install it.
Checkinstall will replace de 'make install' part of the standard compilation. Instead of just copying the files to their target directories it will build and install a deb file.
If you can't use checkinstall, you could create a dummy package using equivs. Note that this can create problems when updating or uninstalling and it's only recommended for expert users. It has a known tendency to grow out of control, so use it with care.
sudo apt-get install equivs
Create the control file:
This will create a template control file called python-numpy (the name doesn't matter)edit it python-numpy so it looks like this:
### Commented entries have reasonable defaults.
### Uncomment to edit them.
# Source: <source package name; defaults to package name>
# Homepage: <enter URL here; no default>
# Maintainer: Your Name <firstname.lastname@example.org>
# Pre-Depends: <comma-separated list of packages>
# Depends: <comma-separated list of packages>
# Recommends: <comma-separated list of packages>
# Suggests: <comma-separated list of packages>
# Provides: <comma-separated list of packages>
# Replaces: <comma-separated list of packages>
# Architecture: all
# Copyright: <copyright file; defaults to GPL2>
# Changelog: <changelog file; defaults to a generic changelog>
# Readme: <README.Debian file; defaults to a generic one>
# Extra-Files: <comma-separated list of additional files for the doc directory>
# Files: <pair of space-separated paths; First is file to include, second is destination>
# <more pairs, if there's more than one file to include. Notice the starting space>
Description: <short description; defaults to some wise words>
long description and info
The more data that you give to it, the better the deb will be. I have only modified 2 fields:
- Package: The name of the package that you want to build. For a dirty solution use python-pynum
- Version: Use a number high enough to keep apt-get from updating it.
A better (but untested by me) solution could be to create a different package name, something link python-pynum-dummy, and use in the Provides line put python-numpy. This should be cleaner.
Finally build the deb.
And install it.