-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docker][microTVM]Fix Zephyr 0.15.2 SDK installation and separate Zephyr python environment #13829
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,27 @@ sudo apt-get update | |
|
||
sudo apt-install-and-clear -y cmake | ||
|
||
pip3 install west | ||
# Find release version | ||
apt-get update | ||
apt-install-and-clear -y \ | ||
lsb-core | ||
|
||
release=$(lsb_release -sc) | ||
if [ "${release}" == "bionic" ]; then | ||
python_cmd="python3" | ||
elif [ "${release}" == "focal" ]; then | ||
python_cmd="python3.8" | ||
else | ||
echo "Don't know which version of python to use for Zephyr." | ||
exit 2 | ||
fi | ||
|
||
# Current Zephyr version is compatible with python3.8. | ||
# We use a different python env for Zephyr to test the | ||
# real world scenario where TVM and Zephyr could be in different | ||
# python environments. | ||
# TODO: use virtual env for Zephyr. | ||
$python_cmd -m pip install west | ||
|
||
# Init ZephyrProject | ||
ZEPHYR_PROJECT_PATH=/opt/zephyrproject | ||
|
@@ -58,10 +78,4 @@ chmod -R o+w ${ZEPHYR_PROJECT_PATH} | |
mkdir zephyr/.cache | ||
chmod o+rwx zephyr/.cache | ||
|
||
pip3 install -r /opt/zephyrproject/zephyr/scripts/requirements.txt | ||
|
||
# the requirements above overwrite junintparser with an older version, but it is not | ||
# used so overwrite it again with the correct version | ||
pip3 install junitparser==2.4.2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't this just using the system Python with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think i might have removed pip3 to stop ppl from installing stuff outside the tvm venv |
||
|
||
bash /install/ubuntu_install_zephyr_sdk.sh /opt/zephyr-sdk | ||
$python_cmd -m pip install -r /opt/zephyrproject/zephyr/scripts/requirements.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.