summaryrefslogtreecommitdiff
path: root/external/bsd/tre/dist/python/setup.py
diff options
context:
space:
mode:
authorrin <rin@NetBSD.org>2017-11-17 16:11:11 +0000
committerrin <rin@NetBSD.org>2017-11-17 16:11:11 +0000
commit5b042ff1c6fb488a60b35fea15bef04fc4ffc7cd (patch)
treee6d308edffcf18c659373a4950ec0808ac9f7a5a /external/bsd/tre/dist/python/setup.py
parent051d2cffd12a265f76b86ad11c7a720e6ecb2e19 (diff)
Import tre from https://github.com/laurikari/tre as of 10171117:
- tre_reg*b() functions are added, that take bytes literally. - minor bug fixes
Diffstat (limited to 'external/bsd/tre/dist/python/setup.py')
-rw-r--r--external/bsd/tre/dist/python/setup.py4
1 files changed, 3 insertions, 1 deletions
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 <ville@laurikari.net>
#
+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"]