From 5b042ff1c6fb488a60b35fea15bef04fc4ffc7cd Mon Sep 17 00:00:00 2001 From: rin Date: Fri, 17 Nov 2017 16:11:11 +0000 Subject: Import tre from https://github.com/laurikari/tre as of 10171117: - tre_reg*b() functions are added, that take bytes literally. - minor bug fixes --- external/bsd/tre/dist/python/setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'external/bsd/tre/dist/python/setup.py') diff --git a/external/bsd/tre/dist/python/setup.py b/external/bsd/tre/dist/python/setup.py index b420a4cac37..00d1e6c7561 100644 --- a/external/bsd/tre/dist/python/setup.py +++ b/external/bsd/tre/dist/python/setup.py @@ -3,6 +3,7 @@ # Copyright (c) 2009 Ville Laurikari # +import distutils.sysconfig from distutils.core import setup, Extension import sys import os @@ -14,7 +15,8 @@ include_dirs = ["../lib"] libraries = ["tre"] if sys.platform == "win32": - data_files = ["tre.dll"] + # 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"] -- cgit