diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2024-04-19 20:28:45 -0700 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2024-04-19 20:44:56 -0700 |
| commit | 3a60351797a76f2c1bdbfac7d31b2ed3e661f01f (patch) | |
| tree | e16c9b6272e29444dd6dc7975354d4bb7ec955e2 /misc/py-onnx/files/patch-setup.py | |
| parent | 1c7a816cd0addb7a2052dbe5528e882d65f3b919 (diff) | |
misc/py-onnx: update 1.14.1 → 1.16.0
Reported by: portscout
Diffstat (limited to 'misc/py-onnx/files/patch-setup.py')
| -rw-r--r-- | misc/py-onnx/files/patch-setup.py | 36 |
1 files changed, 30 insertions, 6 deletions
diff --git a/misc/py-onnx/files/patch-setup.py b/misc/py-onnx/files/patch-setup.py index 550ecb070c95..0c28f53ef277 100644 --- a/misc/py-onnx/files/patch-setup.py +++ b/misc/py-onnx/files/patch-setup.py @@ -1,20 +1,44 @@ ---- setup.py.orig 2023-04-12 23:29:42 UTC +--- setup.py.orig 2024-03-25 14:15:57 UTC +++ setup.py -@@ -59,11 +59,12 @@ COVERAGE = bool(os.getenv("COVERAGE", "0") == "1") +@@ -65,11 +65,12 @@ try: ################################################################################ try: -- git_version = ( +- _git_version = ( - subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=TOP_DIR) - .decode("ascii") - .strip() - ) -+ #git_version = ( ++ #_git_version = ( + # subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=TOP_DIR) + # .decode("ascii") + # .strip() + #) -+ git_version = None ++ _git_version = "" except (OSError, subprocess.CalledProcessError): - git_version = None + _git_version = "" +@@ -227,10 +228,7 @@ class BuildPy(setuptools.command.build_py.build_py): + + class BuildPy(setuptools.command.build_py.build_py): + def run(self): +- if self.editable_mode: +- dst_dir = TOP_DIR +- else: +- dst_dir = self.build_lib ++ dst_dir = self.build_lib + create_version(dst_dir) + return super().run() + +@@ -273,10 +271,7 @@ class BuildExt(setuptools.command.build_ext.build_ext) + self.copy_file(src, dst) + + # Copy over the generated python files to build/source dir depending on editable mode +- if self.editable_mode: +- dst_dir = TOP_DIR +- else: +- dst_dir = build_lib ++ dst_dir = build_lib + + generated_py_files = glob.glob(os.path.join(CMAKE_BUILD_DIR, "onnx", "*.py")) + generated_pyi_files = glob.glob(os.path.join(CMAKE_BUILD_DIR, "onnx", "*.pyi")) |
