Skip to content

Commit 21e1948

Browse files
committed
remove suffix added by fork build process when setting ONNX required version
1 parent 4326e75 commit 21e1948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
with open(os.path.join(TOP_DIR, 'ONNX_VERSION_NUMBER')) as onnx_version_file:
1818
onnx_version = onnx_version_file.read().strip()
1919
# see if our build process has added a suffix to the version
20-
n_dots = [i for i, letter in enumerate(s) if letter == "."]
20+
n_dots = [i for i, ch in enumerate(onnx_version) if ch == "."]
2121

2222
# get the ONNX version from the upstream repo
2323
# by removing the suffix appended by the Fork build process

0 commit comments

Comments
 (0)