Skip to content

Commit beb2516

Browse files
committed
Handle spaces for Python install location in MSVC scripts
Attempting to use an installation path of Python that includes spaces caused the MSVC builds to fail. This fixes the issue by using the same quoting method as ad7595b for OpenSSL. Author: Victor Wagner Discussion: https://postgr.es/m/20200430150608.6dc6b8c4@antares.wagner.home Backpatch-through: 9.5
1 parent 7dc37cc commit beb2516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/msvc/Mkvcbuild.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ sub mkvcbuild
498498
my $pythonprog = "import sys;print(sys.prefix);"
499499
. "print(str(sys.version_info[0])+str(sys.version_info[1]))";
500500
my $prefixcmd =
501-
$solution->{options}->{python} . "\\python -c \"$pythonprog\"";
501+
qq("$solution->{options}->{python}\\python" -c "$pythonprog");
502502
my $pyout = `$prefixcmd`;
503503
die "Could not query for python version!\n" if $?;
504504
my ($pyprefix, $pyver) = split(/\r?\n/, $pyout);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy