Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kamo-naoyuki committed May 12, 2022
1 parent 86186b7 commit 809ac37
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion egs2/aishell4/enh1/local/generate_fe_trainingdata.py.patch
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import argparse

+
+is_py_3_3_plus = V(sys.version) > V("3.3")
+is_py_3_3_plus = V("{}.{}.{}".format(*sys.version_info[:3])) > V("3.3")
+
+
def get_line_context(file_path, line_number):
Expand Down
2 changes: 1 addition & 1 deletion tools/installers/install_fairscale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ python_36_plus=$(python3 <<EOF
from packaging.version import parse as V
import sys
if V(sys.version) >= V("3.6"):
if V("{}.{}.{}".format(*sys.version_info[:3])) >= V("3.6"):
print("true")
else:
print("false")
Expand Down
2 changes: 1 addition & 1 deletion tools/installers/install_fairseq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ python_36_plus=$(python3 <<EOF
from packaging.version import parse as V
import sys
if V(sys.version) >= V("3.6"):
if V("{}.{}.{}".format(*sys.version_info[:3])) >= V("3.6"):
print("true")
else:
print("false")
Expand Down
2 changes: 1 addition & 1 deletion tools/installers/install_k2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ python_36_plus=$(python3 <<EOF
from packaging.version import parse as V
import sys
if V(sys.version) >= V("3.6"):
if V("{}.{}.{}".format(*sys.version_info[:3])) >= V("3.6"):
print("true")
else:
print("false")
Expand Down
2 changes: 1 addition & 1 deletion tools/installers/install_longformer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ python_36_plus=$(python3 <<EOF
from packaging.version import parse as V
import sys
if V(sys.version) >= V("3.6"):
if V("{}.{}.{}".format(*sys.version_info[:3])) >= V("3.6"):
print("true")
else:
print("false")
Expand Down
2 changes: 1 addition & 1 deletion tools/installers/install_s3prl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ python_36_plus=$(python3 <<EOF
from packaging.version import parse as V
import sys
if V(sys.version) >= V("3.6"):
if V("{}.{}.{}".format(*sys.version_info[:3])) >= V("3.6"):
print("true")
else:
print("false")
Expand Down
2 changes: 1 addition & 1 deletion tools/installers/install_torch_optimizer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ python_36_plus=$(python3 <<EOF
from packaging.version import parse as V
import sys
if V(sys.version) >= V("3.6"):
if V("{}.{}.{}".format(*sys.version_info[:3])) >= V("3.6"):
print("true")
else:
print("false")
Expand Down

0 comments on commit 809ac37

Please sign in to comment.