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

Managing dual 2.x and 3.0 installations on Windows #47886

Closed
richardbmartin mannequin opened this issue Aug 21, 2008 · 4 comments
Closed

Managing dual 2.x and 3.0 installations on Windows #47886

richardbmartin mannequin opened this issue Aug 21, 2008 · 4 comments
Labels
topic-installation type-bug An unexpected behavior, bug, or error

Comments

@richardbmartin
Copy link
Mannequin

richardbmartin mannequin commented Aug 21, 2008

BPO 3636
Nosy @birkenfeld, @terryjreedy, @merwok, @briancurtin
Superseder
  • bpo-2375: PYTHON3PATH environment variable to supersede PYTHONPATH for multi-Python environments
  • 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 2012-10-27.16:59:14.498>
    created_at = <Date 2008-08-21.20:24:25.167>
    labels = ['type-bug', 'expert-installation']
    title = 'Managing dual 2.x and 3.0 installations on Windows'
    updated_at = <Date 2012-10-27.16:59:14.495>
    user = 'https://bugs.python.org/richardbmartin'

    bugs.python.org fields:

    activity = <Date 2012-10-27.16:59:14.495>
    actor = 'eric.araujo'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-10-27.16:59:14.498>
    closer = 'eric.araujo'
    components = ['Installation']
    creation = <Date 2008-08-21.20:24:25.167>
    creator = 'richard_b_martin'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 3636
    keywords = []
    message_count = 4.0
    messages = ['71676', '97677', '121831', '173942']
    nosy_count = 6.0
    nosy_names = ['georg.brandl', 'terry.reedy', 'eric.araujo', 'richard_b_martin', 'lambacck', 'brian.curtin']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = 'resolved'
    status = 'closed'
    superseder = '2375'
    type = 'behavior'
    url = 'https://bugs.python.org/issue3636'
    versions = ['Python 3.3']

    @richardbmartin
    Copy link
    Mannequin Author

    richardbmartin mannequin commented Aug 21, 2008

    I installed a 3.0 beta for the first time in Windows. I was surprised
    when my 2.5 scripts started to fail. I traced it down to the 3.0
    install modifying the registry.

    If you run "assoc .py" from a command line, the return value is
    Python.File. If you search the registry for references to Python.File,
    you'll find a path that points to python.exe. The 3.0 install changed
    this value.

    So at least a warning in the installation instructions would be nice.
    Probably better would be a script that allow a user to switch between
    2.x and 3.0 installations. That would include having to perhaps modify
    the env. variables, Path and PYTHONPATH (see bug 2375) and the registry.

    Many thanks, by the way, to all the python developers over the years.

    @richardbmartin richardbmartin mannequin added the docs Documentation in the Doc dir label Aug 21, 2008
    @briancurtin
    Copy link
    Member

    This won't solve the problem of dual installations, but it'll leave things how you were expecting... There is an option in the installer on the customize page for "Register Extensions". Choosing to not install that item will keep the installer from modifying the path and file association.

    I think we could probably have a message on the installer to say that the "Register Extensions" feature would be overwriting your previous settings if it finds settings of a previous version.

    @briancurtin briancurtin added topic-installation type-bug An unexpected behavior, bug, or error and removed docs Documentation in the Doc dir labels Jan 13, 2010
    @lambacck
    Copy link
    Mannequin

    lambacck mannequin commented Nov 21, 2010

    This seems like a normal file association fight, no different than not being able to have both IE and Firefox associated with .html files.

    bpo-2375 has been rejected, so I don't think it is a relevant superseder.

    I don't see how this is any different than having multiple 2.x installations and needing to pick the current one to work with. If 2.3 were the default and I tried to run a script with decorators I would end up with the same result.

    @birkenfeld birkenfeld removed their assignment Oct 6, 2012
    @merwok
    Copy link
    Member

    merwok commented Oct 27, 2012

    @merwok merwok closed this as completed Oct 27, 2012
    @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
    topic-installation type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants