Here are instructions for building the apt_pkg module required by the 'andrea'
tool in Debian's wanna-build distribution. Andrea is used to auto-magically
generating source dependencies from a Packages file (usually from binary-i386).
1) Checkout python-apt source from
:pserver:anonymous@cvs.debian.org:/cvs/deity
2) Checkout apt source from the Debian cvs server
3) Build apt with the included makefile
Apt gives you the necessary include files and libraries to build
python-apt. The include files are located in: apt/build/include/apt-pkg
and the libraries in: apt/build/bin
4) Go to the python-apt source tree and edit the setup.py script to have the
correct include and library directories.
apt_pkg = Extension("apt_pkg", files, libraries=["apt-pkg"],
include_dirs=['/home/gitars/apt/build/include/apt-pkg'],
library_dirs = ['/home/gitars/apt/build/bin'] );
apt_inst = Extension("apt_inst", files, libraries=["apt-pkg","apt-inst"],
include_dirs=['/home/gitars/apt/build/include/apt-pkg'],
library_dirs = ['/home/gitars/apt/build/bin'] );
Build and install the python module with the command './setup.py install'.
5) Note: to use the setup.py script you will need the distutils python
module if you're using python1.5 or earlier. This is available at:
http://www.vex.net/parnassus/
-Gita
-------------------------------------------------------------------------------
Gita Sukthankar gitars@crl.dec.com
Compaq Computer Corporation 617-551-7651
Cambridge Research Laboratory
One Cambridge Center
Cambridge, MA 02142
-------------------------------------------------------------------------------
Received on Thu Feb 7 08:23:24 2002
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 08:45:19 EDT