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

python shebang in python3 tarball files #83435

Closed
arekm mannequin opened this issue Jan 8, 2020 · 2 comments
Closed

python shebang in python3 tarball files #83435

arekm mannequin opened this issue Jan 8, 2020 · 2 comments
Labels
3.8 only security fixes build The build process and cross-build

Comments

@arekm
Copy link
Mannequin

arekm mannequin commented Jan 8, 2020

BPO 39254
Nosy @arekm
Superseder
  • bpo-41626: port shebang of tools from python2 to python3
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-06-24.15:51:47.055>
    created_at = <Date 2020-01-08.06:25:14.907>
    labels = ['build', '3.8']
    title = 'python shebang in python3 tarball files'
    updated_at = <Date 2021-06-24.15:51:47.055>
    user = 'https://github.com/arekm'

    bugs.python.org fields:

    activity = <Date 2021-06-24.15:51:47.055>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-06-24.15:51:47.055>
    closer = 'iritkatriel'
    components = ['Build']
    creation = <Date 2020-01-08.06:25:14.907>
    creator = 'arekm'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39254
    keywords = []
    message_count = 2.0
    messages = ['359567', '359568']
    nosy_count = 1.0
    nosy_names = ['arekm']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '41626'
    type = None
    url = 'https://bugs.python.org/issue39254'
    versions = ['Python 3.8']

    @arekm
    Copy link
    Mannequin Author

    arekm mannequin commented Jan 8, 2020

    Python 3.8.1 files:

        [Lib/encodings/rot_13.py](https://github.com/python/cpython/blob/main/Lib/encodings/rot_13.py) \
        [Lib/lib2to3/tests/data/different_encoding.py](https://github.com/python/cpython/blob/main/Lib/lib2to3/tests/data/different_encoding.py) \
        [Lib/lib2to3/tests/data/false_encoding.py](https://github.com/python/cpython/blob/main/Lib/lib2to3/tests/data/false_encoding.py) \
        [Tools/gdb/libpython.py](https://github.com/python/cpython/blob/main/Tools/gdb/libpython.py) \
        [Tools/pynche/pynche](https://github.com/python/cpython/blob/main/Tools/pynche/pynche) \
        [Tools/pynche/pynche.pyw](https://github.com/python/cpython/blob/main/Tools/pynche/pynche.pyw) \
        [Tools/scripts/2to3](https://github.com/python/cpython/blob/main/Tools/scripts/2to3) \
        [Tools/scripts/smelly.py](https://github.com/python/cpython/blob/main/Tools/scripts/smelly.py) \
        python-gdb.py
    

    are calling python (which often points to python2) while should be calling python3 explicitly (unless python2 is required for using these which would be weird in Python 3 package)

    @arekm arekm mannequin added 3.8 only security fixes build The build process and cross-build labels Jan 8, 2020
    @arekm
    Copy link
    Mannequin Author

    arekm mannequin commented Jan 8, 2020

    These look to be python2 files. Since python2 is close to EOL should these be ported to python3?

    There are more of these in git:

        [Lib/encodings/rot_13.py](https://github.com/python/cpython/blob/main/Lib/encodings/rot_13.py) \
        [Lib/lib2to3/tests/data/different_encoding.py](https://github.com/python/cpython/blob/main/Lib/lib2to3/tests/data/different_encoding.py) \
        [Lib/lib2to3/tests/data/false_encoding.py](https://github.com/python/cpython/blob/main/Lib/lib2to3/tests/data/false_encoding.py) \
        [Mac/BuildScript/build-installer.py](https://github.com/python/cpython/blob/main/Mac/BuildScript/build-installer.py) \
        [Modules/_sha3/cleanup.py](https://github.com/python/cpython/blob/main/Modules/_sha3/cleanup.py) \
        [Objects/typeslots.py](https://github.com/python/cpython/blob/main/Objects/typeslots.py) \
        [Parser/asdl_c.py](https://github.com/python/cpython/blob/main/Parser/asdl_c.py) \
        [Python/makeopcodetargets.py](https://github.com/python/cpython/blob/main/Python/makeopcodetargets.py) \
        [Tools/gdb/libpython.py](https://github.com/python/cpython/blob/main/Tools/gdb/libpython.py) \
        [Tools/pynche/pynche](https://github.com/python/cpython/blob/main/Tools/pynche/pynche) \
        [Tools/pynche/pynche.pyw](https://github.com/python/cpython/blob/main/Tools/pynche/pynche.pyw) \
        [Tools/scripts/2to3](https://github.com/python/cpython/blob/main/Tools/scripts/2to3) \
        [Tools/scripts/smelly.py](https://github.com/python/cpython/blob/main/Tools/scripts/smelly.py)
    

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 only security fixes build The build process and cross-build
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant