Skip to content

Commit 77460a4

Browse files
authored
Merge pull request #503 from bioimage-io/tf1_with_pip
pip for all tf1 versions
2 parents ccb3b3a + b3ce7fe commit 77460a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/static_validation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ def get_default_env(
8181
conda_env["dependencies"].append("cpuonly")
8282

8383
if tensorflow_version is not None:
84-
# tensorflow 1.15 is not available on conda, so we need to inject this as a pip dependency
85-
if (tensorflow_version.major, tensorflow_version.minor) == (1, 15):
84+
# tensorflow 1 is not available on conda, so we need to inject this as a pip dependency
85+
if tensorflow_version.major == 1:
8686
assert opset_version is None
8787
assert pytorch_version is None
8888
conda_env["dependencies"] = ["pip", "python >=3.7,<3.8"] # tf 1.15 not available for py>=3.8

0 commit comments

Comments
 (0)