Codebase list python-adns / 02983789-c848-40c2-a8a7-70bfed9a0572/main setup.py
02983789-c848-40c2-a8a7-70bfed9a0572/main

Tree @02983789-c848-40c2-a8a7-70bfed9a0572/main (Download .tar.gz)

setup.py @02983789-c848-40c2-a8a7-70bfed9a0572/mainraw · history · blame

#!/usr/bin/env python

"""Setup script for the adns module distribution."""

import os, sys
from distutils.core import setup
from distutils.extension import Extension

# You probably don't have to do anything past this point. If you
# do, please mail me the configuration for your platform. Don't
# forget to include the value of sys.platform and os.name.

include_dirs = []
library_dirs = []
runtime_library_dirs = []
extra_objects = []

if os.name == "posix": # most Linux/UNIX platforms
    libraries = ["adns"]
else:
    raise ValueError("sys.platform=%s, os.name=%s" )% \
          (sys.platform, os.name)
    
long_description = \
"""adns-python is a Python module that interfaces to the adns asynchronous
resolver library.

http://www.gnu.org/software/adns/
"""
setup (# Distribution meta-data
    name = "adns",
    version = "1.4-py1",
    description = "An interface to GNU adns - python3 port",
    author = "Loic Jaquemet",
    author_email = "[email protected]",
    url = "https://github.com/trolldbois/python3-adns/",
    download_url = "https://github.com/trolldbois/python3-adns/archive/master.tar.gz",
    long_description=long_description,
    license = "GPL",
    classifiers = [
    "Development Status :: 6 - Mature",
    "Intended Audience :: Developers",
    "License :: OSI Approved :: GNU General Public License (GPL)",
    "Operating System :: POSIX",
    "Topic :: Internet :: Name Service (DNS)",
    "Topic :: Software Development :: Libraries",
    ],

    # Description of the modules and packages in the distribution
    
    py_modules = ["DNSBL", "ADNS"],
    
    #ext_modules = cythonize("adns.pyx"),
    ext_modules = [    Extension(    name='adns',    sources=['adnsmodule.c'],
              include_dirs=include_dirs,    library_dirs=library_dirs,
              runtime_library_dirs=runtime_library_dirs,    libraries=libraries,
              extra_objects=extra_objects,    )],

)