Unwanted skbuild printouts
cterrill26 opened this issue · 0 comments
cterrill26 commented
When i import skbuild with python3 on my system I get the following printouts:
>>> import skbuild
Generating grammar tables from /usr/lib/python3.8/lib2to3/Grammar.txt
Generating grammar tables from /usr/lib/python3.8/lib2to3/PatternGrammar.txt
This causes issues in python/CMakeLists.txt since line 90 is not expecting this extra printout.
Locally, I have fixed this by replacing the import skbuild
at line 81 of the script with import sys; temp = sys.stdout; sys.stdout = open(os.devnull,\"w\"); import skbuild; sys.stdout = temp
to silence the output.