Re: Postgres Windows build system doesn't work with python installedin Program Files

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Postgres Windows build system doesn't work with python installedin Program Files
Дата
Msg-id 20200501085215.GB409463@paquier.xyz
обсуждение исходный текст
Ответ на Postgres Windows build system doesn't work with python installed inProgram Files  (Victor Wagner <vitus@wagner.pp.ru>)
Ответы Re: Postgres Windows build system doesn't work with pythoninstalled in Program Files  (Victor Wagner <vitus@wagner.pp.ru>)
Список pgsql-hackers
On Thu, Apr 30, 2020 at 03:06:08PM +0300, Victor Wagner wrote:
> Fix is very simple, see attach.
>
> Patch is made against REL_12_STABLE, but probably applicable to other
> versions as well.

Indeed, thanks.

>          my $pythonprog = "import sys;print(sys.prefix);"
>            . "print(str(sys.version_info[0])+str(sys.version_info[1]))";
>          my $prefixcmd =
> -          $solution->{options}->{python} . "\\python -c \"$pythonprog\"";
> +        '"' . $solution->{options}->{python} . "\\python\" -c \"$pythonprog\"";
>          my $pyout = `$prefixcmd`;
>          die "Could not query for python version!\n" if $?;
>          my ($pyprefix, $pyver) = split(/\r?\n/, $pyout);

This reminds me of ad7595b.  Wouldn't it be better to use qq() here?
--
Michael

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: pg_rewind docs correction
Следующее
От: Victor Wagner
Дата:
Сообщение: Re: Postgres Windows build system doesn't work with pythoninstalled in Program Files