depot/third_party/nixpkgs/pkgs/development/python-modules/ots-python/0001-use-packaged-ots.patch
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

34 lines
924 B
Diff

From 6ba3b97253cf540fdf4b36672f290def72386096 Mon Sep 17 00:00:00 2001
From: Dan Callaghan <djc@djc.id.au>
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