File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- mkdir -p dist
3
+ TOP_DIR= $( cd $( dirname $0 ) ; pwd ) /..
4
4
5
- cd py && MAX_JOBS=1 LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 python3 setup.py bdist_wheel --use-cxx11-abi
6
-
7
- cd ..
8
-
9
- cp py/dist/* dist/
5
+ cd ${TOP_DIR} \
6
+ && mkdir -p dist && cd py \
7
+ && MAX_JOBS=1 LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 \
8
+ python3 setup.py bdist_wheel --use-cxx11-abi $* || exit 1
10
9
11
10
pip3 install ipywidgets --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org
12
11
jupyter nbextension enable --py widgetsnbextension
13
-
14
12
pip3 install timm
15
13
16
14
# test install
17
- mkdir -p /opt/torch_tensorrt && pip3 uninstall -y torch_tensorrt && pip3 install dist/* .whl
15
+ pip3 uninstall -y torch_tensorrt && pip3 install ${TOP_DIR} /py/ dist/* .whl
18
16
You can’t perform that action at this time.
0 commit comments