Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Michael Felt Newsgroups: comp.lang.python Subject: (Initial) Questions about sysconfig.* Date: Fri, 04 Mar 2016 09:42:49 +0100 Lines: 53 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de KyNBEXypbtTUpBfKf5KcSgieXnq1KUveoQn7Mf5GJlZw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'configure': 0.04; 'source.': 0.05; 'aix': 0.09; 'returns,': 0.09; 'variables,': 0.09; 'python': 0.10; 'ignore': 0.14; "skip:' 30": 0.15; 'variables': 0.15; "'\\\\'": 0.16; '(more': 0.16; 'assistance!': 0.16; 'expect)': 0.16; 'linux)': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; '(in': 0.18; '>>>': 0.20; 'first,': 0.20; '(on': 0.22; 'subject:Questions': 0.22; 'bit': 0.23; 'installation': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; 'sense': 0.26; 'question': 0.27; 'dll': 0.27; "skip:' 10": 0.28; 'pep': 0.29; 'says': 0.32; 'subject:) ': 0.32; 'source': 0.33; 'michael': 0.33; "skip:' 20": 0.34; 'file': 0.34; 'false': 0.35; 'but': 0.36; 'should': 0.36; 'there': 0.36; 'skip:{ 10': 0.36; 'to:addr:python-list': 0.36; 'thanks': 0.37; 'anything': 0.38; 'someone': 0.38; 'why': 0.39; 'received:192': 0.39; 'build': 0.40; 'to:addr:python.org': 0.40; 'where': 0.40; 'your': 0.60; 'skip:u 10': 0.61; 'archive.': 0.66; 'received:nl': 0.72 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: X-Mailman-Approved-At: Fri, 04 Mar 2016 03:49:23 -0500 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:104019 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