Re: Postgres Windows build system doesn't work with python installed in Program Files
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Ranier Vilela <ranier.vf@gmail.com>
Cc: Victor Wagner <vitus@wagner.pp.ru>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2020-05-07T00:14:33Z
Lists: pgsql-hackers
On Wed, May 06, 2020 at 03:58:15PM -0300, Ranier Vilela wrote:
> Hacking pgbison.pl, to print PATH, shows that the path inside pgbison.pl,
> returned to being the original, without the addition of c:\perl\bin;c:\bin.
> my $out = $ENV{PATH};
> print "Path after system call=$out\n";
> Path after system
> call=...C:\Users\ranier\AppData\Local\Microsoft\WindowsApps;;
> The final part lacks: c:\perl\bin;c:\bin
>
> Now I need to find out why the path is being reset, within the perl scripts.
FWIW, we have a buildfarm animal called drongo that runs with VS 2019,
that uses Python, and that is now happy. One of my own machines uses
VS 2019 as well and I have yet to see what you are describing here.
Perhaps that's related to a difference in the version of perl you are
using and the version of that any others?
--
Michael
Commits
-
Improve perl script in MSVC to build binaries
- 404b912c5cab 14.0 landed
-
Handle spaces for Python install location in MSVC scripts
- ad53d6efef0c 9.5.22 landed
- e07fdc126ef3 9.6.18 landed
- 307ed98b0139 10.13 landed
- 984aca448d5d 11.8 landed
- 8c0939dadab0 12.3 landed
- beb2516e9614 13.0 landed
-
Use perl's $/ more idiomatically
- 8f00d84afc0d 13.0 cited