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 dll not installed in windows system directory #48341

Closed
theller opened this issue Oct 9, 2008 · 5 comments
Closed

python dll not installed in windows system directory #48341

theller opened this issue Oct 9, 2008 · 5 comments
Assignees
Labels
topic-installation type-bug An unexpected behavior, bug, or error

Comments

@theller
Copy link

theller commented Oct 9, 2008

BPO 4091
Nosy @loewis, @mhammond, @theller, @amauryfa
Files
  • system32.diff
  • 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 = 'https://github.com/loewis'
    closed_at = <Date 2008-10-17.13:48:14.803>
    created_at = <Date 2008-10-09.18:20:22.943>
    labels = ['type-bug', 'expert-installation']
    title = 'python dll not installed in windows system directory'
    updated_at = <Date 2008-10-17.13:48:14.778>
    user = 'https://github.com/theller'

    bugs.python.org fields:

    activity = <Date 2008-10-17.13:48:14.778>
    actor = 'loewis'
    assignee = 'loewis'
    closed = True
    closed_date = <Date 2008-10-17.13:48:14.803>
    closer = 'loewis'
    components = ['Installation']
    creation = <Date 2008-10-09.18:20:22.943>
    creator = 'theller'
    dependencies = []
    files = ['11774']
    hgrepos = []
    issue_num = 4091
    keywords = ['patch', 'needs review']
    message_count = 5.0
    messages = ['74591', '74597', '74602', '74686', '74907']
    nosy_count = 4.0
    nosy_names = ['loewis', 'mhammond', 'theller', 'amaury.forgeotdarc']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue4091'
    versions = ['Python 2.6', 'Python 3.0']

    @theller
    Copy link
    Author

    theller commented Oct 9, 2008

    Python 2.6 final and Python 3.0 rc1 do NOT install the python dlls into
    the windows system directory, even when installing 'for all users' and
    with admin rights. This causes problems with COM objects implemented in
    Python.

    Observed on Windows XP SP3.

    @theller theller added topic-installation type-bug An unexpected behavior, bug, or error labels Oct 9, 2008
    @amauryfa
    Copy link
    Member

    amauryfa commented Oct 9, 2008

    The following lines in msi.py seem to be the cause of the change:

       #dlldir = PyDirectory(db, cab, root, srcdir, "DLLDIR", ".")
       #install python30.dll into root dir for now
       dlldir = root

    They were added by r61109: Bundle msvcr90.dll as a "private assembly".

    I don't know if simply restoring the previous value will work in every
    case: If the C Run-Time is installed "privately", then python26.dll must
    stay in c:\python26.

    (And I thought that manifests and side-by-side assemblies were supposed
    to solve the "DLL hell")

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Oct 9, 2008

    (And I thought that manifests and side-by-side assemblies were
    supposed to solve the "DLL hell")

    I'm now convinced that they make things worse, to the degree that
    certain deployments that used to work cannot be longer made to work
    (e.g. the Python setup of having DLLs and executables in different
    directories).

    This was one of the reasons why I resisted Python switching to VS 2005,
    and hesitant to accept the switch to VS 2008. It is telling that the MS
    merge module for the CRT automatically sets ALLUSERS=1, refusing even to
    consider non-admin installs.

    Going forward with py3k, we should try to drop even more dependencies on
    the C library, and then perhaps try to link statically for the rest.

    @loewis loewis mannequin self-assigned this Oct 9, 2008
    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Oct 13, 2008

    r61109 became obsolete when I added support for the merge module; here
    is a patch that fixes this. An installer demonstrating the change is
    available from

    http://www.dcl.hpi.uni-potsdam.de/home/loewis/u/python-2.7.14165.msi

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Oct 17, 2008

    Committed as r66958, r66959, and r66960.

    @loewis loewis mannequin closed this as completed Oct 17, 2008
    @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

    2 participants