[issue18255] CPython setup.py problems

2021-08-03 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

This is no longer relevant now that distutils is deprecated.

--
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



[issue18255] CPython setup.py problems

2021-08-02 Thread Irit Katriel


Irit Katriel  added the comment:

Is this still relevant now that distutils is deprecated?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue18255] CPython setup.py problems

2014-05-04 Thread Éric Araujo

Éric Araujo added the comment:

Note that the distutils feature freeze has been lifted, so in 3.5 sysconfig 
could be reused by distutils.sysconfig, but the existing functionality 
(different API + ability to override with env vars) must be preserved.

--
nosy: +eric.araujo

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



[issue18255] CPython setup.py problems

2013-06-18 Thread Ronald Oussoren

New submission from Ronald Oussoren:

While working on a fix for #18211 I noticed two problems with the setup.py 
that's used to build the stdlib extensions.

1) setup.py uses sysconfig instead of distutils.sysconfig. The sematics of the 
two modules a slighty different.

2) The block of code starting with the this text is not necessary because 
distutils.sysconfig (which is used by the build_ext command) already does the 
right thing for environment variables:


# When you run make CC=altcc or something similar, you really want
# those environment variables passed into the setup.py phase.  Here's
# a small set of useful ones.

--
components: Build
files: setup-update.txt
messages: 191406
nosy: ronaldoussoren
priority: normal
severity: normal
stage: patch review
status: open
title: CPython setup.py problems
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file30640/setup-update.txt

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



[issue18255] CPython setup.py problems

2013-06-18 Thread Jeremy Kloth

Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com:


--
nosy: +jkloth

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



[issue18255] CPython setup.py problems

2013-06-18 Thread Ronald Oussoren

Ronald Oussoren added the comment:

So much for obviously correct changes...

1) fix typo in import statement (from sysconfig import import ...)

2) setup.py uses sysconfig.get_path and that's not present in 
distutils.sysconfig.

(Sigh..., why are there two modules with almost but not entirely equal 
functionality and APIs?)

--
Added file: http://bugs.python.org/file30642/setup-update-v2.txt

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



[issue18255] CPython setup.py problems

2013-06-18 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

distutils.sysconfig module is theoretically deprecated in favor of sysconfig 
module. It is better to fix sysconfig module than to switch back to 
distutils.sysconfig module.

--
nosy: +Arfrever

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



[issue18255] CPython setup.py problems

2013-06-18 Thread Ronald Oussoren

Ronald Oussoren added the comment:

I don't agree. Distutils still uses distutils.sysconfig for configuration 
information and setup.py wants to adjust that configuration, it should 
therefore use distutils.sysconfig instead of the global one. 

That said, it would be better to change distutils to use sysconfig instead of 
its local configuration information (distutils.sysconfig, 
distutils.command.install.INSTALL_SCHEMES, ...).  That has never been because 
distutils is frozen due to backward compatibility concerns, but it might be 
better to actually change distutils for 3.4 when there will be other changes to 
deal with the new packaging PEPs as well).

However: switching distutils to use the toplevel sysconfig will change 
functionality, as I wrote in my initial message you can use environment 
variables to override variables for distutils.sysconfig, but that doesn't work 
for the global sysconfig because the values in _sysconfigdata are expanded at 
build time.

--

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