From 6ba3b97253cf540fdf4b36672f290def72386096 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Sun, 23 Apr 2023 21:26:53 +1000 Subject: [PATCH] use packaged ots diff --git a/setup.py b/setup.py index 6c3ccae..ca021da 100755 --- a/setup.py +++ b/setup.py @@ -248,7 +248,6 @@ def run(self): platforms=["posix", "nt"], package_dir={"": "src/python"}, packages=find_packages("src/python"), - ext_modules=[ots_sanitize], zip_safe=False, cmdclass=cmdclass, setup_requires=["setuptools_scm"], diff --git a/src/python/ots/__init__.py b/src/python/ots/__init__.py index 5fc1724..db9d21e 100644 --- a/src/python/ots/__init__.py +++ b/src/python/ots/__init__.py @@ -3,7 +3,7 @@ import sys import os -OTS_SANITIZE = os.path.join(os.path.dirname(__file__), "ots-sanitize") +OTS_SANITIZE = "@ots_sanitize@" __all__ = ["sanitize", "OTSError", "CalledProcessError"] -- 2.38.4