I DistUtils-ified pylibpcap-0.2
Now, instead of wiggling the Makefile to suit the
installed software, just:
(or for RPMs)
(or to distribute in a tarball)
and so on.
DistUtils is a wonderful thing.
Try ./setup.py --help to find out what commands are
available, and ./setup.py <command> --help to find out
how to alter that particular command to suit your
To make this work, I had to rename pcap.c to
While DistUtils does not use the Makefile anymore, I
also altered it.
Included is a tarball. Its contents are:
I did not alter error.c, exception.c, pcap.i, pcap.py,
pcap_interface.c, COPYING, README
(pcap.c -> pcap_interface.c)
I altered pypcap.h to change an include line from
<pcap/pcap.h> to <pcap.h> due to setup.py and/or -I
lines automatically pre-pending the pcap/ portion if
necessary. Look in setup.py for the line
The setup.cfg, setup.py, and MANIFEST.in are distutils
files. PKG-INFO contains some meta-data that is
automatically generated by the distutils software.