Skip to content

Conversation

@areusch
Copy link
Contributor

@areusch areusch commented Sep 16, 2022

This PR fixes some of the ongoing problems we're having building docker images after merging #12663 . It links caffe into the venv (this was done before, but is now done via the env var) and ensures that cmake will find the venv Python by ensuring that the python3.7 command resolves to the venv Python. Finally, it builds boost outside the venv so that development files can be found.

@leandron @driazati

@github-actions
Copy link
Contributor

github-actions bot commented Sep 16, 2022

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

  • No users to tag found in teams See #10317 for details
  • Unable to run tests bot because main failed to pass CI at 5dfa8da.
  • Built docs for commit d0757bc can be found here.

Generated by tvm-bot

PYCAFFE_ROOT=${CAFFE_HOME}/python
echo "${CAFFE_HOME}/lib" >> /etc/ld.so.conf.d/caffe.conf && ldconfig
VENV_SITE_PACKAGE=$(pip3 show numpy | grep "Location:" | cut -d ' ' -f 2)
ln -s ${PYCAFFE_ROOT}/caffe ${VENV_SITE_PACKAGE}/caffe
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi #12813 fixed this too via site-packages

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true, do you have a preference? cc @ashutosh-arm

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh sorry, reading the CI failure now. ignore me :)

@areusch areusch merged commit 52dbf10 into apache:main Sep 20, 2022
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
…pache#12828)

* Fix caffe, boost install in Python venvs by creating python3.X link.

* Use getsitepackages()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants