Skip to content

Commit

Permalink
Create Python virtualenv on Windows for docs (#5045)
Browse files Browse the repository at this point in the history
Add an equivalent setup script for Windows to
init python dev environment for building docs.
  • Loading branch information
big-r81 committed May 3, 2024
1 parent f5292d8 commit 2884d67
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.win
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ config.erl:
src\docs\build:
@echo 'Building docs...'
ifeq ($(with_docs), 1)
@cd src\docs && make.bat html && make.bat man
@cd src\docs && setup.bat && make.bat html && make.bat man
endif


Expand Down
11 changes: 11 additions & 0 deletions src/docs/setup.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@echo off

IF NOT EXIST "%CD%\.venv\Scripts\activate" (
DEL /S "%CD%\.venv"
python "-m" "venv" ".venv"
"%CD%\.venv\Scripts\activate.bat"
pip "install" "--upgrade" "pip"
pip "install" "-r" "requirements.txt"
) ELSE (
"%CD%\.venv\Scripts\activate.bat"
)

0 comments on commit 2884d67

Please sign in to comment.