diff options
author | tsarna <tsarna> | 2002-10-16 16:45:56 +0000 |
---|---|---|
committer | tsarna <tsarna> | 2002-10-16 16:45:56 +0000 |
commit | cc40f622355dbef3aad9bde1d27344f6357105df (patch) | |
tree | f6149c261164ed367e418a18f17dd0a5a40ae2fa /textproc/py-expat/files | |
parent | 0ed1a9901a94ce30ec95461e2e5ef96fceca3fe4 (diff) | |
download | pkgsrc-cc40f622355dbef3aad9bde1d27344f6357105df.tar.gz |
py-expat -- enables python's xml framework to use the expat parser.
Diffstat (limited to 'textproc/py-expat/files')
-rw-r--r-- | textproc/py-expat/files/setup.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/textproc/py-expat/files/setup.py b/textproc/py-expat/files/setup.py new file mode 100644 index 00000000000..5fd06093b22 --- /dev/null +++ b/textproc/py-expat/files/setup.py @@ -0,0 +1,24 @@ +# $NetBSD: setup.py,v 1.1.1.1 2002/10/16 16:45:56 tsarna Exp $ + +import distutils +from distutils.core import setup, Extension + +expatprefix = '@EXPATPREFIX@' +expatincl = expatprefix + '/include' +expatlib = expatprefix + '/lib' +expatrtprefix = '@EXPATPREFIX@' +expatrtlib = expatrtprefix + '/lib' + +setup( + ext_modules = [ + Extension( + 'pyexpat', + ['Modules/pyexpat.c'], + define_macros=[('HAVE_EXPAT_H', None)], + include_dirs=[expatincl], + library_dirs=[expatlib], + runtime_library_dirs=[expatrtlib], + libraries=['expat'] + ) + ] +) |