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
标题: CROSS: use _PYTHON_PROJECT_BASE in distutils sysconfig
类型: compile error Stage: resolved
Components: Cross-Build Versions: Python 3.3, Python 3.4
process
状态: closed Resolution: fixed
Dependencies: 后续:
分配给: 抄送列表: Arfrever, devurandom, doko, jcea, python-dev, rpetrov
优先级: normal 关键字: patch

Created on 2012-07-29 09:43 by rpetrov, last changed 2022-04-11 14:57 by admin. This issue is now closed.

文件
文件名 上传时间 Description 编辑
2-CROSS-use-_PYTHON_PROJECT_BASE-in-distutils-sysconfig.patch rpetrov, 2012-07-29 09:43
2-CROSS-set-_PYTHON_PROJECT_BASE-to-current-build-dir.patch rpetrov, 2012-07-29 09:48
Messages (7)
msg166734 - (view) Author: Roumen Petrov (rpetrov) * 日期: 2012-07-29 09:43
Same as sysconfig but now in distutils  _PYTHON_PROJECT_BASE has to be used in cross-build environment.
msg166736 - (view) Author: Roumen Petrov (rpetrov) * 日期: 2012-07-29 09:48
Also _PYTHON_PROJECT_BASE should be initialized to build directory by configure - low priority as other issue prevent python to be build and tested smoothly outside source tree.
msg180575 - (view) Author: Matthias Klose (doko) * (Python committer) 日期: 2013-01-25 13:16
> 2-CROSS-use-_PYTHON_PROJECT_BASE-in-distutils-sysconfig.patch

This looks ok to me, just factoring out some code and setting the project base. Even if distutils is frozen, I'll apply this one, based on Eric's comment in http://bugs.python.org/issue14330#msg164406

> 2-CROSS-set-_PYTHON_PROJECT_BASE-to-current-build-dir.patch

I'll use abs_builddir instead.
msg180577 - (view) Author: Matthias Klose (doko) * (Python committer) 日期: 2013-01-25 13:22
and adding the pybuilddir to PYTHONPATH, so that _sysconfigdata.py is found if it does exist.

$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)
msg180578 - (view) Author: Roundup Robot (python-dev) (Python triager) 日期: 2013-01-25 13:36
New changeset b2e7c85399f5 by doko in branch '3.3':
- Issue #15484: Fix _PYTHON_PROJECT_BASE for srcdir != builddir builds;
http://hg.python.org/cpython/rev/b2e7c85399f5

New changeset 172fec65c882 by doko in branch 'default':
- Issue #15484: Fix _PYTHON_PROJECT_BASE for srcdir != builddir builds;
http://hg.python.org/cpython/rev/172fec65c882
msg180633 - (view) Author: Roumen Petrov (rpetrov) * 日期: 2013-01-25 22:21
Matthias Klose wrote:
> 2-CROSS-set-_PYTHON_PROJECT_BASE-to-current-build-dir.patch
> I'll use abs_builddir instead.
Yes after some fixes related to issue 15819 (msg173144) this is preferred.

Roumen
msg180658 - (view) Author: Roundup Robot (python-dev) (Python triager) 日期: 2013-01-26 11:09
New changeset f0cde9b6830a by doko in branch '3.3':
- Follow-up for issue #15484: In PYTHON_FOR_BUILD, use $(PLATDIR) instead
http://hg.python.org/cpython/rev/f0cde9b6830a

New changeset 938a045cfe7d by doko in branch 'default':
- Follow-up for issue #15484: In PYTHON_FOR_BUILD, use $(PLATDIR) instead
http://hg.python.org/cpython/rev/938a045cfe7d
历史
日期 用户 动作 参数
2022-04-11 14:57:33admin修改github: 59689
2013-01-26 11:09:46python-dev修改消息: + msg180658
2013-01-25 22:21:55rpetrov修改消息: + msg180633
2013-01-25 15:12:07ezio.melotti修改stage: resolved
resolution: fixed
versions: + Python 3.4
2013-01-25 13:36:49doko修改状态: open -> closed
2013-01-25 13:36:01python-dev修改抄送: + python-dev
消息: + msg180578
2013-01-25 13:22:50doko修改消息: + msg180577
2013-01-25 13:17:00doko修改抄送: + doko
消息: + msg180575
2012-10-22 12:01:09jcea修改抄送: + jcea
2012-10-17 08:46:57devurandom修改抄送: + devurandom
2012-07-29 11:56:19Arfrever修改抄送: + Arfrever
2012-07-29 10:02:35rpetrov修改type: compile error
components: + Cross-Build, - Build
2012-07-29 09:48:49rpetrov修改文件: + 2-CROSS-set-_PYTHON_PROJECT_BASE-to-current-build-dir.patch

消息: + msg166736
2012-07-29 09:43:21rpetrov创建