Skip to content

Commit eb57889

Browse files
Add docs option in configure
Adds a --docs option to the configure script to also install requirements for the documentation builds. Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent c76dff4 commit eb57889

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

configure

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ CLI_ARGS=$1
3030
# Requirement arguments passed to pip and used by default or with --dev.
3131
REQUIREMENTS="--editable . --constraint requirements.txt"
3232
DEV_REQUIREMENTS="--editable .[testing] --constraint requirements.txt --constraint requirements-dev.txt"
33+
DOCS_REQUIREMENTS="--editable .[docs] --constraint requirements.txt"
3334

3435
# where we create a virtualenv
3536
VIRTUALENV_DIR=venv
@@ -177,6 +178,7 @@ while getopts :-: optchar; do
177178
help ) cli_help;;
178179
clean ) find_python && clean;;
179180
dev ) CFG_REQUIREMENTS="$DEV_REQUIREMENTS";;
181+
docs ) CFG_REQUIREMENTS="$DOCS_REQUIREMENTS";;
180182
esac;;
181183
esac
182184
done

configure.bat

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
@rem # Requirement arguments passed to pip and used by default or with --dev.
2929
set "REQUIREMENTS=--editable . --constraint requirements.txt"
3030
set "DEV_REQUIREMENTS=--editable .[testing] --constraint requirements.txt --constraint requirements-dev.txt"
31+
set "DOCS_REQUIREMENTS=--editable .[docs] --constraint requirements.txt"
3132

3233
@rem # where we create a virtualenv
3334
set "VIRTUALENV_DIR=venv"
@@ -77,6 +78,9 @@ if not "%1" == "" (
7778
if "%1" EQU "--dev" (
7879
set "CFG_REQUIREMENTS=%DEV_REQUIREMENTS%"
7980
)
81+
if "%1" EQU "--docs" (
82+
set "CFG_REQUIREMENTS=%DOCS_REQUIREMENTS%"
83+
)
8084
shift
8185
goto again
8286
)

0 commit comments

Comments
 (0)