[BACK]Return to setup.py.in CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / bsd / tre / dist / python

Annotation of src/external/bsd/tre/dist/python/setup.py.in, Revision 1.1

1.1     ! rin         1: # setup.py - Builds and installs the TRE Python language bindings module
        !             2: #
        !             3: # Copyright (c) 2009 Ville Laurikari <ville@laurikari.net>
        !             4: #
        !             5:
        !             6: import distutils.sysconfig
        !             7: from distutils.core import setup, Extension
        !             8: import sys
        !             9: import os
        !            10: import shutil
        !            11:
        !            12: version = "@TRE_VERSION@"
        !            13: data_files = []
        !            14: include_dirs = ["../lib"]
        !            15: libraries = ["tre"]
        !            16:
        !            17: if sys.platform == "win32":
        !            18:     # Place tre.dll in site-packages, next to tre.pyd.
        !            19:     data_files = [(distutils.sysconfig.get_python_lib(), ["tre.dll"])]
        !            20:     include_dirs += ["../win32"]
        !            21:     shutil.copy("../win32/Release/tre.dll", ".")
        !            22:     libraries = ["../win32/Release/tre"]
        !            23:
        !            24: setup(name = "tre",
        !            25:       version = version,
        !            26:       description = "Python module for TRE",
        !            27:       author = "Ville Laurikari",
        !            28:       author_email = "ville@laurikari.net",
        !            29:       license = "2-clause BSD",
        !            30:       url = "http://laurikari.net/tre/",
        !            31:       data_files = data_files,
        !            32:       ext_modules = [Extension("tre",
        !            33:                                sources = ["tre-python.c"],
        !            34:                                define_macros = [("HAVE_CONFIG_H", None)],
        !            35:                                include_dirs = include_dirs,
        !            36:                                libraries = libraries
        !            37:                                ),
        !            38:                      ],
        !            39:       )

CVSweb <webmaster@jp.NetBSD.org>