Skip to content

Commit 46756a6

Browse files
committed
depends: Fix PYTHONPATH setting in config.site.in
Previously, when running ./configure: 1. With CONFIG_SITE pointed to our depends config.site.in, and 2. PYTHONPATH was not set either in the environment or by the user The configure would output something like: PYTHONPATH='depends/x86_64-pc-linux-gnu/share/../native/lib/python3/dist-packages:' When we really mean: PYTHONPATH='depends/x86_64-pc-linux-gnu/share/../native/lib/python3/dist-packages' ...without the colon This change makes sure that: 1. There's no trailing colon, and 2. We use the $PATH_SEPARATOR variable instead of a colon
1 parent 618cbd2 commit 46756a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

depends/config.site.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ fi
7979
if test -n "@CXX@" -a -z "${CXX}"; then
8080
CXX="@CXX@"
8181
fi
82-
PYTHONPATH=$depends_prefix/native/lib/python3/dist-packages:$PYTHONPATH
82+
PYTHONPATH="${depends_prefix}/native/lib/python3/dist-packages${PYTHONPATH:+${PATH_SEPARATOR}}${PYTHONPATH}"
8383

8484
if test -n "@AR@"; then
8585
AR=@AR@

0 commit comments

Comments
 (0)