python detection v windows

From: Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: python detection v windows
Date: 2019-09-29 20:16:08
Message-ID: 70f3fde5-fad0-9d91-f254-72097095cd02@2ndQuadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


I just tried building with Python on msys2. However, the setup of the
latest python doesn't fit our detection code. I see this:

# /c/Python37/python -c 'import distutils.sysconfig;
print(distutils.sysconfig.get_config_vars());'

{'LIBDEST': 'C:\\Python37\\Lib', 'BINLIBDEST': 'C:\\Python37\\Lib',
'INCLUDEPY': 'C:\\Python37\\include', 'EXT_SUFFIX':
'.cp37-win_amd64.pyd', 'EXE': '.exe', 'VERSION': '37', 'BINDIR':
'C:\\Python37', 'prefix': 'C:\\Python37', 'exec_prefix': 'C:\\Python37',
'SO': '.cp37-win_amd64.pyd', 'srcdir': 'C:\\Python37'}

The python3.dll and python37.dll files are in c:\\python37, i.e. the
BINDIR as one might expect on Windows.

It would be nice to get this working.

cheers

andrew

--
Andrew Dunstan https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2019-09-29 20:55:53 Windows v readline
Previous Message Peter Geoghegan 2019-09-29 19:52:43 Re: Connections hang indefinitely while taking a gin index's LWLock buffer_content lock(PG10.7)