about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/ots-python/0001-use-packaged-ots.patch
blob: 233e97d7b4b83182739ca897239df1591af854b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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