areusch commented on a change in pull request #7289:
URL: https://github.com/apache/tvm/pull/7289#discussion_r568070669
##########
File path: python/setup.py
##########
@@ -171,38 +171,25 @@ def get_package_data_files():
return ["relay/std/prelude.rly", "relay/std/core.rly"]
+# Temporarily add this directory to the path so we can import the requirements
generator
+# tool.
+sys.path.insert(0, os.path.dirname(__file__))
+import gen_requirements
+sys.path.pop(0)
+
+requirements = gen_requirements.join_requirements()
Review comment:
I guess, I don't typically expect to see the requirements printed when I
run `python setup.py`. are there cases where you do? I could add a comment
saying: to produce requirements.txt files, run `python gen_requirements.py`
above this line, which is kind of the typical case i'd expect someone to be
looking for them.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]