[issue20212] distutils: fix build_ext check to find whether we're building Python or not

2021-02-03 Thread Steve Dower


Steve Dower  added the comment:

Distutils is now deprecated (see PEP 632) and all tagged issues are being 
closed. From now until removal, only release blocking issues will be considered 
for distutils.

If this issue does not relate to distutils, please remove the component and 
reopen it. If you believe it still requires a fix, most likely the issue should 
be re-reported at https://github.com/pypa/setuptools

--
nosy: +steve.dower
resolution:  -> out of date
stage: patch review -> 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



[issue20212] distutils: fix build_ext check to find whether we're building Python or not

2014-03-15 Thread Roumen Petrov

Roumen Petrov added the comment:

P.S. two patches posted to Issue17219 are for master branch as second one 
should apply cleanly to current.

--

___
Python tracker 

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



[issue20212] distutils: fix build_ext check to find whether we're building Python or not

2014-03-15 Thread Roumen Petrov

Roumen Petrov added the comment:

actually proposed fix is my patch from 17219 with long history before.

--
nosy: +rpetrov

___
Python tracker 

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



[issue20212] distutils: fix build_ext check to find whether we're building Python or not

2014-03-14 Thread Éric Araujo

Éric Araujo added the comment:

Hi, thanks for the report and patch.  How can I reproduce the error?

Matthias: which versions did you change to support cross-compile?  I understand 
this is a bug, not a new feature, so it should be fixed in all affected 
versions.

--
components: +Distutils
nosy: +eric.araujo
stage:  -> patch review

___
Python tracker 

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



[issue20212] distutils: fix build_ext check to find whether we're building Python or not

2014-02-17 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +doko, haypo

___
Python tracker 

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



[issue20212] distutils: fix build_ext check to find whether we're building Python or not

2014-01-09 Thread Thomas Petazzoni

New submission from Thomas Petazzoni:

The build_ext logic uses 
sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")) to determine 
whether we're building a third-party Python extension, or a built-in Python 
extension. However, this check is wrong in cross-compilation mode, because the 
host Python interpreter might very well be installed in its prefix, when it is 
used to cross-compile the target modules and extensions. The current check 
would mis-detect this as we're building third-party Python modules, while we 
are in fact building the internal Python modules of the target Python.

Therefore, use the existing sysconfig.python_build variable, which provides the 
information of whether we're building Python itself or not in a correct way.

--
components: Cross-Build
files: 0002-distutils-fix-build_ext-check-to-find-whether-we-re-.patch
keywords: patch
messages: 207806
nosy: thomas-petazzoni
priority: normal
severity: normal
status: open
title: distutils: fix build_ext check to find whether we're building Python or 
not
type: compile error
versions: Python 3.4
Added file: 
http://bugs.python.org/file33394/0002-distutils-fix-build_ext-check-to-find-whether-we-re-.patch

___
Python tracker 

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