Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #104019

(Initial) Questions about sysconfig.*

From Michael Felt <michael@felt.demon.nl>
Newsgroups comp.lang.python
Subject (Initial) Questions about sysconfig.*
Date 2016-03-04 09:42 +0100
Message-ID <mailman.180.1457081363.20602.python-list@python.org> (permalink)
References <CACwCsY5CFNVnTw=xpPJXXmYEH6Qb70yA+-XoJ+waFUdKDd6a8w@mail.gmail.com>

Show all headers | View raw


First, a simple one:

sysconfig.is_python_build()

     Return True if the current Python installation was built from source.

>>>  sysconfig.is_python_build()
False

Now, not earth shattering, but I did build this from source - so can someone help me with understanding why Python says no?

FYI: These are accurate: (reformated for legibility, where needed)

>>>  sysconfig.get_paths()
{'platinclude': '/opt/include/python2.7',
  'platstdlib': '/opt/lib/python2.7',
  'platlib': '/opt/lib/python2.7/site-packages',
  'purelib': '/opt/lib/python2.7/site-packages',
  'stdlib': '/opt/lib/python2.7',
  'scripts': '/opt/bin',
  'include': '/opt/include/python2.7',
  'data': '/opt'
}

>>>  sysconfig.get_platform()
'aix-5.3'

And a last question (more about the configure phase I expect)

...() returns, among other things:

'LIBRARY_OBJS': '\\',
'MODULE_OBJS': '\\',
'PARSER_HEADERS': '\\',
'PGENSRCS': '\\ \\',
'PYTHON_OBJS': '\\',
'QUICKTESTOPTS': '-l -x test_subprocess test_io test_lib2to3 \\',

'SHLIB_EXT': '".so"',

Why are any of these using '\\' for anything on 'posix'?

And, as a DLL object on AIX (in the same sense as linux) is both 'libNAME.so'
when available as a file AND libNAME.a(anything.so) when a MEMBER in an archive.

Or are there variables there I should ignore (on 'posix')?

And, having read a bit - is there a PEP on these variables, meaning, and usage?

Thanks for your assistance!

Michael

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

(Initial) Questions about sysconfig.* Michael Felt <michael@felt.demon.nl> - 2016-03-04 09:42 +0100

csiph-web