Skip to content

Commit

Permalink
Support updated web-builder with venv
Browse files Browse the repository at this point in the history
  • Loading branch information
gemenerik committed Oct 24, 2024
1 parent efbf417 commit b03d305
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tools/build-docs/build-docs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ tempDir=$scriptDir/../../.tmp
mkdir -p $apiRefDir
mkdir -p $tempDir

# This hack is needed to find --user installed modules
export PYTHONPATH=$PYTHONPATH:$scriptDir/.local/lib/python3.7/site-packages

[ -n "$API_REF_BASE" ] || {
export API_REF_BASE=$(readlink -fn $tempDir)
}
Expand All @@ -27,8 +24,8 @@ export PYTHONPATH=$PYTHONPATH:$scriptDir/.local/lib/python3.7/site-packages
#

# Make a temporary install in the temp dir
HOME=$tempDir pip3 install --user --upgrade pip
HOME=$tempDir pip3 install --user -e $scriptDir/../../
HOME=$tempDir pip3 install --upgrade pip
HOME=$tempDir pip3 install -e $scriptDir/../../

# Generate documentation
HOME=$tempDir pdoc3 --force $cflibDir --output-dir $tempDir --template-dir $templateDir
Expand Down

0 comments on commit b03d305

Please sign in to comment.