Hi @samcha, thanks for the post.
I think at the moment there is no mechanism to allow an out of tree Python package building in TVM. I think it would require copying some directories and files around, namely “standalone_crt”, “configs”, that are currently encoded in the
setup.py (reference) configuration.
This setup script follows Python
setuptools (reference), so I’m not sure to what extent we can make it to be portable in the way you describe.
What I think would be an easier solution, would be to have a separate script, to create that package on a given location, and then cleanup the Python tree. Sorry I certainly don’t have a definitive solution.
cc @areusch @Mousius @driazati for more suggestions and ideas