[issue17695] _sysconfigdata broken with universal builds on OSX

2020-11-21 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

This only affects universal builds where the CPU architectures are sufficiently 
different. In particular binaries with both 32-bit and 64-bit alternatives.

The current installers and the upcoming Universal2 installers only contain 
64-bit code. That's likely to be the case going forward.


I'm closing this as "won't fix", this is a low priority issue that I'll never 
work on.

--
resolution:  -> wont fix
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17695] _sysconfigdata broken with universal builds on OSX

2019-04-27 Thread Mark Lawrence


Change by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17695] _sysconfigdata broken with universal builds on OSX

2014-07-21 Thread Ronald Oussoren

Ronald Oussoren added the comment:

Sure... The issue is still present. To demonstrate the problem:

arch -i386 ./python.exe
Python 3.5.0a0 (default:9b450b19aa11+, Jul 21 2014, 10:03:38) 
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.maxsize
2147483647
>>> import sysconfig
>>> sysconfig.get_config_var('SIZEOF_LONG')
8
>>> 

This is on a machine that can run 64-bit code and uses a fat binary with i386 
and x86_64 support. The script generating _sysconfigdata.py used the x86_64 
code and hence created data that's only valid for the x86_64 binary.

It's easy enough to to create a patch that reproduces the preprocessor code in 
pymacconfig.h in sysconfig.py, but I'm not sure if that is the right fix in 
particular due to the vagueness of the sysconfig API.  

A short rant:

IMHO the current API of sysconfig is underspecified and tied way to much the 
arbitrary details of the CPython build system (not the actual function keys, 
but the set of information that can be retrieved). There is no documentation at 
all on which keys are present and what there meaning is. As an example, there 
have been a number of issues in the past where users tried to use the value for 
key that's only meant to be used at CPython build time and users complained 
that the value didn't work for them with an installed CPython.

--
stage:  -> needs patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17695] _sysconfigdata broken with universal builds on OSX

2014-07-15 Thread Mark Lawrence

Mark Lawrence added the comment:

Can our OSX gurus comment on this please.

--
nosy: +BreamoreBoy, ned.deily
versions: +Python 3.5 -Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17695] _sysconfigdata broken with universal builds on OSX

2013-04-10 Thread Ronald Oussoren

New submission from Ronald Oussoren:

The _sysconfig module contains the definitions for sysconfig.get_config_var and 
is created during python's build.

The definitions in _sysconfig.py for #define macros redefined in pymacconfig.h 
are wrong when building a universal build of Python (fat binaries) on OSX.

In particular the definitions for the various SIZEOF_ definitions are wrong and 
are the values for the default architecture of the build machine instead of 
reflecting the architecture for the code that is actually executing.

--
messages: 186547
nosy: ronaldoussoren
priority: normal
severity: normal
status: open
title: _sysconfigdata broken with universal builds on OSX
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com