Skip to content

Commit 6e57a07

Browse files
committed
Add python executable argument to the configure script #376
Signed-off-by: Thomas Druez <tdruez@nexb.com>
1 parent b3e4d3b commit 6e57a07

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

configure

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ fi
2121

2222
CONFIGURE_ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2323

24-
python "$CONFIGURE_ROOT_DIR/etc/configure.py" $CFG_CMD_LINE_ARGS
25-
if [ -f "$CONFIGURE_ROOT_DIR/bin/activate" ]; then
26-
source $CONFIGURE_ROOT_DIR/bin/activate
24+
if [[ "$PYTHON_EXE" == "" ]]; then
25+
PYTHON_EXE=python
2726
fi
27+
28+
$PYTHON_EXE "$CONFIGURE_ROOT_DIR/etc/configure.py" $CFG_CMD_LINE_ARGS

0 commit comments

Comments
 (0)