➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
标题: sysconfig and distutils.sysconfig differ in subtle ways
类型: Stage: resolved
Components: Distutils, Library (Lib) Versions: Python 3.2, Python 2.7
process
状态: closed Resolution: wont fix
Dependencies: 后续:
分配给: tarek 抄送列表: barry, eric.araujo, tarek
优先级: normal 关键字:

Created on 2010-09-12 23:26 by eric.araujo, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (5)
msg116251 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) 日期: 2010-09-12 23:26
With the recent distutils revert, code that was removed from distutils.sysconfig is now back.  This causes an unfortunate code duplication that raises maintenance cost (see msg116087 for an example).

Even if distutils is feature-frozen, I think that it should be changed to use the sysconfig module again.  Think about it that way: The new feature is sysconfig itself, this does not break the distutils freeze since compatibility would be retained.
msg116318 - (view) Author: Tarek Ziadé (tarek) * (Python committer) 日期: 2010-09-13 15:44
That's what I wanted to do first but it turned out to be a bad idea.

This duplication is unfortunate but the freeze is also to prevent third party code that patches distutils to break.

For instance, there's a lot of code out there that just patches distutils.sysconfig paths... So changing it would break them.
msg117681 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) 日期: 2010-09-30 00:40
I understand.  This means that sysconfig fixes will have to be ported to distutils.sysconfig and d2/sysconfig.
msg117850 - (view) Author: Tarek Ziadé (tarek) * (Python committer) 日期: 2010-10-01 23:28
Not in distutils2 because we want to get rid of it, thats the whole point.
distutils2 will use the sysconfig module I've extracted from distutils.
msg117851 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) 日期: 2010-10-01 23:33
By “d2/sysconfig” I meant d2._backport.sysconfig.
历史
日期 用户 动作 参数
2022-04-11 14:57:06admin修改github: 54050
2010-10-01 23:33:50eric.araujo修改消息: + msg117851
2010-10-01 23:28:05tarek修改消息: + msg117850
2010-10-01 21:37:16barry修改抄送: + barry
2010-09-30 00:40:24eric.araujo修改状态: open -> closed

消息: + msg117681
stage: resolved
2010-09-13 15:44:36tarek修改resolution: wont fix
消息: + msg116318
2010-09-13 01:01:19eric.araujo链接issue6011 dependencies
2010-09-12 23:26:26eric.araujo创建