Skip to content

Move to using package_data to install typeshed and xml files. #4143

Closed

Description

@emmatyping

Currently, we use data_files to distribute typeshed and xml files. The prefix under which data_files is installed is not exposed publicly, which has lead to complexities and issues with resolving typeshed's install location such as #4142.

Therefore, I propose we move to package_data. This will install typeshed and the xml files into site-packages/mypy/typeshed and site-packages/mypy/xml. This will be much easier to find, and should avoid all of the intricacies in resolving the system prefix.

Activity

  1. emmatyping commented on Oct 26, 2017

    @emmatyping
    MemberAuthor

    Well, annoyingly, it appears this won't be possible, unless we require pip install . to use admin on Windows (see pypa/pip#1006).

    However, python3 setup.py install will work fine, as well as sdist, bdist_wheel, and just about any other installation I can think of (including oddly pip install -e ., which is a developer install). The underlying issue is typeshed symlinks, so we could fix that and everything would work, but Im not sure the path forward on that is the clearest to me.

  2. JelleZijlstra commented on Oct 26, 2017

    @JelleZijlstra
    Member

    Wasn't that issue fixed in pypa/pip#1311?

  3. emmatyping commented on Oct 26, 2017

    @emmatyping
    MemberAuthor

    It was fixed, but it seems that the fix requires administrator access on Windows see pypa/pip#1311 (comment)

    I tested it myself and it fails without privileges.

  4. JukkaL commented on Oct 26, 2017

    @JukkaL
    Collaborator

    I think that we should get rid of typeshed symlinks.

  5. emmatyping commented on Jul 3, 2018

    @emmatyping
    MemberAuthor

    Closing in favor of #5307

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions