mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
a02a0f4432
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.
30 lines
1.0 KiB
Python
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',
|
|
])
|
|
|