1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/math/py-onnx/files/patch-setup.py
Yuri Victorovich a02a0f4432 Move science/py-onnx -> math/py-onnx
math is a more appropriate category, but neural networks is really
an emerging field in itself and it probably deserves the category
of its own.
2019-08-27 04:08:33 +00:00

30 lines
1.0 KiB
Python

--- setup.py.orig 2019-04-24 06:21:37 UTC
+++ setup.py
@@ -52,11 +52,12 @@ COVERAGE = bool(os.getenv('COVERAGE'))
# Version
################################################################################
-try:
- git_version = subprocess.check_output(['git', 'rev-parse', 'HEAD'],
- cwd=TOP_DIR).decode('ascii').strip()
-except (OSError, subprocess.CalledProcessError):
- git_version = None
+#try:
+# git_version = subprocess.check_output(['git', 'rev-parse', 'HEAD'],
+# cwd=TOP_DIR).decode('ascii').strip()
+#except (OSError, subprocess.CalledProcessError):
+# git_version = None
+git_version = None
with open(os.path.join(TOP_DIR, 'VERSION_NUMBER')) as version_file:
VersionInfo = namedtuple('VersionInfo', ['version', 'git_version'])(
@@ -286,7 +287,7 @@ install_requires.extend([
'protobuf',
'numpy',
'six',
- 'typing>=3.6.4',
+ 'typing>=3.6.4; python_version < "3.5"',
'typing-extensions>=3.6.2.1',
])