python detection v windows - Mailing list pgsql-hackers

From Andrew Dunstan
Subject python detection v windows
Date
Msg-id 70f3fde5-fad0-9d91-f254-72097095cd02@2ndQuadrant.com
Whole thread Raw
List 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




pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Connections hang indefinitely while taking a gin index's LWLockbuffer_content lock(PG10.7)
Next
From: Andrew Dunstan
Date:
Subject: Windows v readline