@@ -28,16 +28,10 @@ jobs:
28
28
apt update
29
29
DEBIAN_FRONTEND=noninteractive apt install -y software-properties-common gcc git curl wget make zlib1g-dev bzip2 libbz2-dev lzma lzma-dev libreadline-dev libsqlite3-dev libssl-dev libffi-dev doxygen pandoc
30
30
git config --global --add safe.directory '*'
31
- - name : Install Python
32
- run : |
33
- mkdir -p /opt/circleci
34
- git clone https://github.com/pyenv/pyenv.git /opt/circleci/.pyenv
35
- export PYENV_ROOT="/opt/circleci/.pyenv"
36
- export PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"
37
- pyenv install 3.9.4
38
- pyenv global 3.9.4
39
- python3 -m pip install --upgrade pip
40
- python3 -m pip install wheel
31
+ - name : Set up Python 3.9.4
32
+ uses : actions/setup-python@v2
33
+ with :
34
+ python-version : 3.9.4
41
35
- uses : actions/checkout@v2
42
36
with :
43
37
ref : ${{github.head_ref}}
@@ -70,25 +64,19 @@ jobs:
70
64
apt-get install -y libnvinfer8 libnvinfer-plugin8 libnvinfer-dev libnvinfer-plugin-dev
71
65
- name : Install Torch
72
66
run : |
73
- export PYENV_ROOT="/opt/circleci/.pyenv"
74
- export PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"
75
- pyenv global 3.9.4
76
67
python3 -m pip install -r py/requirements.txt
77
68
- name : Build Python Package
78
69
run : |
79
70
cp toolchains/ci_workspaces/WORKSPACE.x86_64 WORKSPACE
80
71
cd py
81
- export PYENV_ROOT="/opt/circleci/.pyenv"
82
- export PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"
83
- pyenv global 3.9.4
72
+ echo $(which python3)
73
+ mkdir -p /opt/circleci/.pyenv/versions/3.9.4/lib/python3.9/
74
+ ln -s /usr/local/lib/python3.8/site-packages /opt/circleci/.pyenv/versions/ 3.9.4/lib/python3.9/site-packages
84
75
python3 setup.py install
85
76
cd ..
86
77
- name : Generate New Docs
87
78
run : |
88
79
cd docsrc
89
- export PYENV_ROOT="/opt/circleci/.pyenv"
90
- export PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"
91
- pyenv global 3.9.4
92
80
python3 -m pip install -r requirements.txt
93
81
python3 -c "import torch_tensorrt; print(torch_tensorrt.__version__)"
94
82
make html
0 commit comments