From 7e370ebd64e43d1ac59181c51ed9065a094d39d7 Mon Sep 17 00:00:00 2001 From: Gabor Kovesdan Date: Tue, 3 May 2011 19:33:09 +0000 Subject: - Vendor import of TRE 0.8.0 --- python/setup.py | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 python/setup.py (limited to 'python/setup.py') diff --git a/python/setup.py b/python/setup.py new file mode 100644 index 0000000000000..b420a4cac3704 --- /dev/null +++ b/python/setup.py @@ -0,0 +1,37 @@ +# setup.py - Builds and installs the TRE Python language bindings module +# +# Copyright (c) 2009 Ville Laurikari +# + +from distutils.core import setup, Extension +import sys +import os +import shutil + +version = "0.8.0" +data_files = [] +include_dirs = ["../lib"] +libraries = ["tre"] + +if sys.platform == "win32": + data_files = ["tre.dll"] + include_dirs += ["../win32"] + shutil.copy("../win32/Release/tre.dll", ".") + libraries = ["../win32/Release/tre"] + +setup(name = "tre", + version = version, + description = "Python module for TRE", + author = "Ville Laurikari", + author_email = "ville@laurikari.net", + license = "2-clause BSD", + url = "http://laurikari.net/tre/", + data_files = data_files, + ext_modules = [Extension("tre", + sources = ["tre-python.c"], + define_macros = [("HAVE_CONFIG_H", None)], + include_dirs = include_dirs, + libraries = libraries + ), + ], + ) -- cgit v1.2.3