aboutsummaryrefslogtreecommitdiffstats
path: root/misc/py-onnx/files/patch-setup.py
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2025-02-25 19:25:16 -0800
committerYuri Victorovich <yuri@FreeBSD.org>2025-02-25 19:36:49 -0800
commit749e85c87ada57baba935122177391633e654533 (patch)
tree93dc0505c2315ad67e25af2b82b0f5f80fffd5ae /misc/py-onnx/files/patch-setup.py
parent4ffe1ecfad1d7ed109db696aa73d1f922cb90ef6 (diff)
misc/py-onnx: update 1.16.2 → 1.17.0
Diffstat (limited to 'misc/py-onnx/files/patch-setup.py')
-rw-r--r--misc/py-onnx/files/patch-setup.py86
1 files changed, 43 insertions, 43 deletions
diff --git a/misc/py-onnx/files/patch-setup.py b/misc/py-onnx/files/patch-setup.py
index 0c28f53ef277..cf72ca00fe1b 100644
--- a/misc/py-onnx/files/patch-setup.py
+++ b/misc/py-onnx/files/patch-setup.py
@@ -1,44 +1,44 @@
---- setup.py.orig 2024-03-25 14:15:57 UTC
+--- setup.py.orig 2024-09-30 20:12:15 UTC
+++ setup.py
-@@ -65,11 +65,12 @@ try:
- ################################################################################
-
- try:
-- _git_version = (
-- subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=TOP_DIR)
-- .decode("ascii")
-- .strip()
-- )
-+ #_git_version = (
-+ # subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=TOP_DIR)
-+ # .decode("ascii")
-+ # .strip()
-+ #)
-+ _git_version = ""
- except (OSError, subprocess.CalledProcessError):
- _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"))
+@@ -66,11 +66,12 @@ try:
+ ################################################################################
+
+ try:
+- _git_version = (
+- subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=TOP_DIR)
+- .decode("ascii")
+- .strip()
+- )
++ #_git_version = (
++ # subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=TOP_DIR)
++ # .decode("ascii")
++ # .strip()
++ #)
++ _git_version = ""
+ except (OSError, subprocess.CalledProcessError):
+ _git_version = ""
+
+@@ -228,10 +229,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()
+
+@@ -274,10 +272,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"))