silx: 2.1.1 -> 2.1.2 (#361612)
[NixPkgs.git] / pkgs / development / python-modules / ots-python / 0001-use-packaged-ots.patch
blob233e97d7b4b83182739ca897239df1591af854b7
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
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"],
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
23 @@ -3,7 +3,7 @@
24 import sys
25 import os
27 -OTS_SANITIZE = os.path.join(os.path.dirname(__file__), "ots-sanitize")
28 +OTS_SANITIZE = "@ots_sanitize@"
30 __all__ = ["sanitize", "OTSError", "CalledProcessError"]
32 --
33 2.38.4