Fix setup.py

This commit is contained in:
Fangjun Kuang 2022-06-01 18:57:03 +08:00
parent 0348fda69f
commit fa6404ad19

View File

@ -61,5 +61,7 @@ with open("kaldifeat/python/kaldifeat/__init__.py", "r") as f:
with open("kaldifeat/python/kaldifeat/__init__.py", "w") as f: with open("kaldifeat/python/kaldifeat/__init__.py", "w") as f:
for line in lines: for line in lines:
if "__version__" not in line: if "__version__" in line and "torch" not in line:
# skip __version__ = "x.x.x"
continue
f.write(line) f.write(line)