Skip to content
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

building: add .py suffix to entry-point scripts without suffix #8049

Merged
merged 1 commit into from
Oct 29, 2023

Commits on Oct 28, 2023

  1. building: add .py suffix to entry-point scripts without suffix

    If the entry-point script has no suffix, append the `.py` suffix
    to the filename passed to the `compile` function when byte-compiling
    the script for collection.
    
    This ensures that the entry-point script filename never coincides with
    executable filename, especially in POSIX builds, where executables have
    no suffix either (and their name is based on the entry-point script
    basename by default). Entry-point script having the same filename as
    the executable causes issues when `traceback` (and `linecache`)
    try to access source code for it, an in the process end up reading
    the executable file if it happens to be in the current working directory.
    rokm committed Oct 28, 2023
    Configuration menu
    Copy the full SHA
    c181f08 View commit details
    Browse the repository at this point in the history