Skip to content

Commit 7aa7d4c

Browse files
committed
Do not issue warning if thirdparty dir is missing
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 14f6a2d commit 7aa7d4c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

configure

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ CFG_ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5151
CFG_BIN_DIR=$CFG_ROOT_DIR/$VIRTUALENV_DIR/bin
5252

5353
# Find packages from the local thirdparty directory or from thirdparty.aboutcode.org
54-
PIP_EXTRA_ARGS="--find-links $CFG_ROOT_DIR/thirdparty --find-links https://thirdparty.aboutcode.org/pypi"
54+
if [ -f "$CFG_ROOT_DIR/thirdparty" ]; then
55+
PIP_EXTRA_ARGS="--find-links $CFG_ROOT_DIR/thirdparty "
56+
fi
57+
PIP_EXTRA_ARGS="$PIP_EXTRA_ARGS --find-links https://thirdparty.aboutcode.org/pypi"
5558

5659

5760
################################

configure.bat

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ set "CFG_BIN_DIR=%CFG_ROOT_DIR%\%VIRTUALENV_DIR%\Scripts"
4949

5050
@rem ################################
5151
@rem # Thirdparty package locations and index handling
52-
set "PIP_EXTRA_ARGS=--find-links %CFG_ROOT_DIR%\thirdparty --find-links https://thirdparty.aboutcode.org/pypi" & %INDEX_ARG%
52+
if exist ""%CFG_ROOT_DIR%\thirdparty"" (
53+
set "PIP_EXTRA_ARGS=--find-links %CFG_ROOT_DIR%\thirdparty "
54+
)
55+
56+
set "PIP_EXTRA_ARGS=%PIP_EXTRA_ARGS% --find-links https://thirdparty.aboutcode.org/pypi" & %INDEX_ARG%
5357
@rem ################################
5458

5559

0 commit comments

Comments
 (0)