Skip to content
Snippets Groups Projects
Commit a84f6aa5 authored by Stuart Gathman's avatar Stuart Gathman
Browse files

Specify library_dirs for Debian.

parent 344e8f0a
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ from distutils.core import setup, Extension ...@@ -6,6 +6,7 @@ from distutils.core import setup, Extension
# on slackware and debian, leave it out entirely. It depends # on slackware and debian, leave it out entirely. It depends
# on how libmilter was built by the sendmail package. # on how libmilter was built by the sendmail package.
libs = ["milter", "smutil"] libs = ["milter", "smutil"]
libdirs = ["/usr/lib/libmilter"] # needed for Debian
# patch distutils if it can't cope with the "classifiers" or # patch distutils if it can't cope with the "classifiers" or
# "download_url" keywords # "download_url" keywords
...@@ -15,7 +16,7 @@ if sys.version < '2.2.3': ...@@ -15,7 +16,7 @@ if sys.version < '2.2.3':
DistributionMetadata.download_url = None DistributionMetadata.download_url = None
# NOTE: importing Milter to obtain version fails when milter.so not built # NOTE: importing Milter to obtain version fails when milter.so not built
setup(name = "pymilter", version = '0.8.8', setup(name = "pymilter", version = '0.8.9',
description="Python interface to sendmail milter API", description="Python interface to sendmail milter API",
long_description="""\ long_description="""\
This is a python extension module to enable python scripts to This is a python extension module to enable python scripts to
...@@ -33,6 +34,7 @@ sending DSNs or doing CBVs. ...@@ -33,6 +34,7 @@ sending DSNs or doing CBVs.
packages = ['Milter'], packages = ['Milter'],
ext_modules=[ ext_modules=[
Extension("milter", ["miltermodule.c"], Extension("milter", ["miltermodule.c"],
library_dirs=libdirs,
libraries=libs, libraries=libs,
# set MAX_ML_REPLY to 1 for sendmail < 8.13 # set MAX_ML_REPLY to 1 for sendmail < 8.13
define_macros = [ ('MAX_ML_REPLY',32) ] define_macros = [ ('MAX_ML_REPLY',32) ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment