summarylogtreecommitdiffstats
path: root/tvm.install
blob: 5b9ffdbd337aef573db14fa76de2e634e07b6f63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
post_install() {
# (from python-x-wr-timezone)
cat << EOF
# This version of TVM currently needs- and was compiled with
# Python 3.8 to be fully used.
# This may work:
# (create a virtual environment =env= is a directory)
python3.8 -m venv --clear --system-site-packages env
# (activate virtual environment)
source env/bin/activate
# (install dependencies inside the virtual environment)
pip install numpy decorator attrs cloudpickle psutil tornado scipy
# (test)
python
>>> import tvm
>>> from tvm import te
# (deactivate virtual environment; once Python is closed)
deactivate
# (Run this every other time)
source env/bin/activate
python
deactivate
EOF
}

post_update () {
post_install
}