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.
Created on 2012年07月11日 02:08 by chris.jerdonek, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (5) | |||
|---|---|---|---|
| msg165219 - (view) | Author: Chris Jerdonek (chris.jerdonek) * (Python committer) | Date: 2012年07月11日 02:08 | |
sysconfig.get_config_var('srcdir') seems to return the current working directory rather than a directory related to the source directory.
For example (starting from the repository root)--
$ mkdir foo
$ cd foo
$ ../python.exe
Python 3.3.0b1 (default:5d43154d68a8, Jul 8 2012, 18:23:20)
[GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.58)] on darwin
>>> import sysconfig
>>> sysconfig.get_config_vars('srcdir')
['/.../cpython/foo']
>>> import sys
>>> sys.executable
'/.../cpython/foo/../python.exe'
This may be the cause or related to issue 15300: "test directory doubly-nested running tests with -j/--multiprocess".
|
|||
| msg165262 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2012年07月11日 16:08 | |
Looks like a duplicate; I can’t search right now (try sysconfig + build). |
|||
| msg165268 - (view) | Author: Chris Jerdonek (chris.jerdonek) * (Python committer) | Date: 2012年07月11日 19:36 | |
I searched a little before. There is issue 12141, "sysconfig.get_config_vars('srcdir') fails in specific cases," but that issue is closed. In the comments there, Antoine seems to be describing the bug I describe here, but I'm not sure an issue was filed: http://bugs.python.org/issue12141#msg136493 |
|||
| msg168160 - (view) | Author: Richard Oudkerk (sbt) * (Python committer) | Date: 2012年08月14日 00:01 | |
I think #15364 is a duplicate of this. It should be fixed now. Can you check again. |
|||
| msg168161 - (view) | Author: Chris Jerdonek (chris.jerdonek) * (Python committer) | Date: 2012年08月14日 00:11 | |
It seems to be fixed now. Thanks. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:32 | admin | set | github: 59527 |
| 2012年08月14日 00:13:48 | sbt | set | status: open -> closed |
| 2012年08月14日 00:11:06 | chris.jerdonek | set | status: pending -> open messages: + msg168161 |
| 2012年08月14日 00:01:58 | sbt | set | status: open -> pending superseder: sysconfig confused by relative paths nosy: + sbt messages: + msg168160 type: behavior resolution: duplicate stage: resolved |
| 2012年07月11日 19:36:43 | chris.jerdonek | set | messages: + msg165268 |
| 2012年07月11日 16:08:41 | eric.araujo | set | messages: + msg165262 |
| 2012年07月11日 16:06:07 | pitrou | set | nosy:
+ tarek, eric.araujo |
| 2012年07月11日 02:08:27 | chris.jerdonek | create | |