Closed JingyuQian closed 1 year ago
Hi @JingyuQian, thanks for reporting this! I noticed this behavior a couple weeks ago but didn't look too deeply into what the cause was, this is very helpful!
Would you be interested in submitting a pull request with a fix?
Hi @luisenp , I've submitted a PR to fix this issue. Feel free to verify, thanks!
π Bug
The build script does not actually use the created theseus conda environment
Steps to Reproduce
Steps to reproduce the behavior:
in the
build_wheel.sh
, change the contents of dockerfile from:to:
And run the build script.
Expected behavior
There will be 2 additional lines of output:
Which means the pip used in the building stage is not the one from the "theseus" conda env.
Additional context
The problem lies in this line:
It does activate the theseus env, but then Docker creates a layer from this and proceeds to the next command and won't use the theseus env from this layer. The 3.10 actually comes from the conda base env. So
pip
andpython3
commands should be modified, such as creating some new environment variables.Bit of context
Was trying to build theseus with a lower version of PyTorch and python3.9. The wheel builds successfully but keeps tagging python3.10, which lead me to find this problem.