-
-
Notifications
You must be signed in to change notification settings - Fork 32k
import_helper.make_legacy_pyc() works incorrectly for source files in a directory #124842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Oct 1, 2024
For source file "path/to/file.py" it created file with incorrect path "/absolute/path/to/path/to/file.pyc" instead of "path/to/file.pyc".
serhiy-storchaka
added a commit
that referenced
this issue
Oct 1, 2024
For source file "path/to/file.py" it created file with incorrect path "/absolute/path/to/path/to/file.pyc" instead of "path/to/file.pyc".
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Oct 1, 2024
…thonGH-124843) For source file "path/to/file.py" it created file with incorrect path "/absolute/path/to/path/to/file.pyc" instead of "path/to/file.pyc". (cherry picked from commit 60ff67d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Oct 1, 2024
…thonGH-124843) For source file "path/to/file.py" it created file with incorrect path "/absolute/path/to/path/to/file.pyc" instead of "path/to/file.pyc". (cherry picked from commit 60ff67d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This was referenced Oct 1, 2024
And indeed, all existing calls to this function either used absolute path or a path without directory name. |
pablogsal
pushed a commit
to pablogsal/cpython
that referenced
this issue
Oct 1, 2024
…yc() (pythonGH-124843)" This reverts commit 60ff67d.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Bug report
For source file with relative path "path/to/file.py" it creates file with incorrect path "/absolute/path/to/path/to/file.pyc" instead of "path/to/file.pyc".
Surprisingly, the broken version works in all existing tests. Either they only use the source file path without directory, or absolute path, or the test is indifferent to the compiled file path. But it did not work in #124799 which created independent set of tests for running compiled files.
Linked PRs
The text was updated successfully, but these errors were encountered: