Skip to content

Commit fbdffdc

Browse files
authored
Update docgen.yml
1 parent 6e467f2 commit fbdffdc

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

.github/workflows/docgen.yml

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,10 @@ jobs:
2828
apt update
2929
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
3030
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
4135
- uses: actions/checkout@v2
4236
with:
4337
ref: ${{github.head_ref}}
@@ -70,25 +64,19 @@ jobs:
7064
apt-get install -y libnvinfer8 libnvinfer-plugin8 libnvinfer-dev libnvinfer-plugin-dev
7165
- name: Install Torch
7266
run: |
73-
export PYENV_ROOT="/opt/circleci/.pyenv"
74-
export PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"
75-
pyenv global 3.9.4
7667
python3 -m pip install -r py/requirements.txt
7768
- name: Build Python Package
7869
run: |
7970
cp toolchains/ci_workspaces/WORKSPACE.x86_64 WORKSPACE
8071
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
8475
python3 setup.py install
8576
cd ..
8677
- name: Generate New Docs
8778
run: |
8879
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
9280
python3 -m pip install -r requirements.txt
9381
python3 -c "import torch_tensorrt; print(torch_tensorrt.__version__)"
9482
make html

0 commit comments

Comments
 (0)