distutils source dist question

Skip Montanaro skip at pobox.com
Wed Feb 27 17:15:17 EST 2002


I have a small library consisting of three C source files:

    alf.c
    alf.h
    alfmodule.c

The first two files are a standalone library, while the third is an
extension module wrapping the library.

The naive "python setup.py install" command creates alfmodule.so and
installs it in site-packages.  I'd like libalf.so or libalf.a to also get
created and installed in ${prefix}/lib and alf.h to be installed in
${prefix}/include.  Can this be done with distutils or do I need to fall
back to Makefile for this?

Thanks,

-- 
Skip Montanaro (skip at pobox.com - http://www.mojam.com/)




More information about the Python-list mailing list