Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/external/bsd/tre/dist/python/setup.py,v rcsdiff: /ftp/cvs/cvsroot/src/external/bsd/tre/dist/python/setup.py,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.1.1.1 retrieving revision 1.1.1.2 diff -u -p -r1.1.1.1 -r1.1.1.2 --- src/external/bsd/tre/dist/python/setup.py 2010/02/25 07:33:18 1.1.1.1 +++ src/external/bsd/tre/dist/python/setup.py 2017/11/17 16:11:12 1.1.1.2 @@ -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"]