1From 6ba3b97253cf540fdf4b36672f290def72386096 Mon Sep 17 00:00:00 2001
2From: Dan Callaghan <djc@djc.id.au>
3Date: Sun, 23 Apr 2023 21:26:53 +1000
4Subject: [PATCH] use packaged ots
5
6
7diff --git a/setup.py b/setup.py
8index 6c3ccae..ca021da 100755
9--- a/setup.py
10+++ b/setup.py
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],
16 zip_safe=False,
17 cmdclass=cmdclass,
18 setup_requires=["setuptools_scm"],
19diff --git a/src/python/ots/__init__.py b/src/python/ots/__init__.py
20index 5fc1724..db9d21e 100644
21--- a/src/python/ots/__init__.py
22+++ b/src/python/ots/__init__.py
23@@ -3,7 +3,7 @@
24 import sys
25 import os
26
27-OTS_SANITIZE = os.path.join(os.path.dirname(__file__), "ots-sanitize")
28+OTS_SANITIZE = "@ots_sanitize@"
29
30 __all__ = ["sanitize", "OTSError", "CalledProcessError"]
31
32--
332.38.4
34