1 From 6ba3b97253cf540fdf4b36672f290def72386096 Mon Sep 17 00:00:00 2001
2 From: Dan Callaghan <djc@djc.id.au>
3 Date: Sun, 23 Apr 2023 21:26:53 +1000
4 Subject: [PATCH] use packaged ots
7 diff --git a/setup.py b/setup.py
8 index 6c3ccae..ca021da 100755
11 @@ -248,7 +248,6 @@ def run(self):
12 platforms=["posix", "nt"],
13 package_dir={"": "src/python"},
14 packages=find_packages("src/python"),
15 - ext_modules=[ots_sanitize],
18 setup_requires=["setuptools_scm"],
19 diff --git a/src/python/ots/__init__.py b/src/python/ots/__init__.py
20 index 5fc1724..db9d21e 100644
21 --- a/src/python/ots/__init__.py
22 +++ b/src/python/ots/__init__.py
27 -OTS_SANITIZE = os.path.join(os.path.dirname(__file__), "ots-sanitize")
28 +OTS_SANITIZE = "@ots_sanitize@"
30 __all__ = ["sanitize", "OTSError", "CalledProcessError"]