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

File: [cvs.NetBSD.org] / src / external / bsd / tre / dist / python / setup.py.in (download)

Revision 1.1.1.1 (vendor branch), Fri Nov 17 16:11:12 2017 UTC (2 years, 8 months ago) by rin
Branch: MAIN, LAURIKARI
CVS Tags: tre-20171117, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, HEAD
Changes since 1.1: +0 -0 lines

Import tre from https://github.com/laurikari/tre as of 10171117:

- tre_reg*b() functions are added, that take bytes literally.
- minor bug fixes

# setup.py - Builds and installs the TRE Python language bindings module
#
# Copyright (c) 2009 Ville Laurikari <ville@laurikari.net>
#

import distutils.sysconfig
from distutils.core import setup, Extension
import sys
import os
import shutil

version = "@TRE_VERSION@"
data_files = []
include_dirs = ["../lib"]
libraries = ["tre"]

if sys.platform == "win32":
    # Place tre.dll in site-packages, next to tre.pyd.
    data_files = [(distutils.sysconfig.get_python_lib(), ["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
                               ),
                     ],
      )