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


Groups > comp.lang.python > #104019 > unrolled thread

(Initial) Questions about sysconfig.*

Started byMichael Felt <michael@felt.demon.nl>
First post2016-03-04 09:42 +0100
Last post2016-03-04 09:42 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#104019 — (Initial) Questions about sysconfig.*

FromMichael Felt <michael@felt.demon.nl>
Date2016-03-04 09:42 +0100
Subject(Initial) Questions about sysconfig.*
Message-ID<mailman.180.1457081363.20602.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web