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

[Windows] Document the launcher's -64 suffix #78103

Closed
mrh1997 mannequin opened this issue Jun 20, 2018 · 6 comments
Closed

[Windows] Document the launcher's -64 suffix #78103

mrh1997 mannequin opened this issue Jun 20, 2018 · 6 comments
Labels
3.7 (EOL) end of life 3.8 only security fixes docs Documentation in the Doc dir OS-windows type-feature A feature request or enhancement

Comments

@mrh1997
Copy link
Mannequin

mrh1997 mannequin commented Jun 20, 2018

BPO 33922
Nosy @pfmoore, @tjguk, @zware, @eryksun, @zooba, @mrh1997, @miss-islington
PRs
  • bpo-33922: Adding documentation for new "-64" suffix of python launcher #7849
  • [3.7] bpo-33922: Adding documentation for new "-64" suffix of Python launcher (GH-7849) #12812
  • Dependencies
  • bpo-30291: Allow windows launcher to specify bit lengths with & without minor version
  • 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 2019-04-13.10:55:55.347>
    created_at = <Date 2018-06-20.23:43:42.416>
    labels = ['3.8', 'type-feature', '3.7', 'OS-windows', 'docs']
    title = "[Windows] Document the launcher's -64 suffix"
    updated_at = <Date 2019-04-13.10:55:55.347>
    user = 'https://github.com/mrh1997'

    bugs.python.org fields:

    activity = <Date 2019-04-13.10:55:55.347>
    actor = 'cheryl.sabella'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2019-04-13.10:55:55.347>
    closer = 'cheryl.sabella'
    components = ['Documentation', 'Windows']
    creation = <Date 2018-06-20.23:43:42.416>
    creator = 'mrh1997'
    dependencies = ['30291']
    files = []
    hgrepos = []
    issue_num = 33922
    keywords = ['patch']
    message_count = 6.0
    messages = ['320127', '320130', '320141', '320197', '340118', '340121']
    nosy_count = 8.0
    nosy_names = ['paul.moore', 'tim.golden', 'docs@python', 'zach.ware', 'eryksun', 'steve.dower', 'mrh1997', 'miss-islington']
    pr_nums = ['7849', '12812']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue33922'
    versions = ['Python 3.7', 'Python 3.8']

    @mrh1997
    Copy link
    Mannequin Author

    mrh1997 mannequin commented Jun 20, 2018

    When using the Python Launcher "py.exe", it uses 64bit by default and I can enforce using 32bit.

    But there is no way to enforce 64bit. If I run "py -3.6" the actual called interpreter depends on the interpreter versions installed on my system.

    Thus "py -3.6-64" is missing.
    This is important if 64bit features are required.

    @mrh1997 mrh1997 mannequin added OS-windows type-feature A feature request or enhancement labels Jun 20, 2018
    @eryksun
    Copy link
    Contributor

    eryksun commented Jun 21, 2018

    Limiting to 64-bit is already implemented in the latest version of the launcher. For example, below I've renamed the registry key for 64-bit Python 3.5 to "xxx3.5" to prevent the launcher from finding it:

    C:\>py -3.5-64
    Python 3.5-64 not found!
    Installed Pythons found by py Launcher for Windows
     -xxx-64
     -3.7-64 *
     -3.7-32
     -3.6-64
     -3.6-32
     -3.5-32
     -2.7-64
     -2.7-32
    
    Requested Python version (3.5-64) not installed, use -0 for available pythons
    

    -0p also lists the path for each executable. It's a bit rough around the edges that it lists the available versions and then tells the user to list them via -0 instead of the more general advice to use -h or --help for available options.

    The long names for -0 and -0p are --list and --list-paths, but currently these do not work. That should be easy to fix in the launcher's process() function if you want to contribute a patch.

    @eryksun eryksun closed this as completed Jun 21, 2018
    @mrh1997
    Copy link
    Mannequin Author

    mrh1997 mannequin commented Jun 21, 2018

    A thanks!

    In the meantime I found the corresponding changelog entry:
    https://bugs.python.org/issue30291

    I checked the corresponding commit:

    there is no documentation update. It would be nice if the new feature can be found in the documentation (including the fact that -64 is only supported after installing python 3.7 or newer)...

    @mrh1997
    Copy link
    Mannequin Author

    mrh1997 mannequin commented Jun 21, 2018

    I extended the documentation and created a pullrequest:

    #7849

    @eryksun eryksun added 3.7 (EOL) end of life 3.8 only security fixes docs Documentation in the Doc dir labels Jul 6, 2018
    @eryksun eryksun reopened this Jul 6, 2018
    @eryksun eryksun changed the title Enforce 64bit Python by Launcher [Windows] Document the launcher's -64 suffix Jul 6, 2018
    @zooba
    Copy link
    Member

    zooba commented Apr 12, 2019

    New changeset 1e2ad6c by Steve Dower (mrh1997) in branch 'master':
    bpo-33922: Adding documentation for new "-64" suffix of Python launcher (GH-7849)
    1e2ad6c

    @miss-islington
    Copy link
    Contributor

    New changeset 395bb94 by Miss Islington (bot) in branch '3.7':
    bpo-33922: Adding documentation for new "-64" suffix of Python launcher (GH-7849)
    395bb94

    @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.7 (EOL) end of life 3.8 only security fixes docs Documentation in the Doc dir OS-windows type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    4 participants