Skip to content

Click cannot be packaged as a submodule on Windows #1068

Closed

Description

@brianbruggeman

The windows shim references click within its import system, making it impossible to actually submodule or vendor click within another package if that package is intended to be run on Windows.

See: https://github.com/pallets/click/blob/master/click/_winconsole.py#L18

Activity

  1. davidism commented on Jul 13, 2018

    @davidism
    Member

    I don't understand the issue. Can you give an example of how you're trying to vendor this, and what error it's causing?

  2. ThiefMaster commented on Jul 13, 2018

    @ThiefMaster
    Member

    My guess is he's importing click as import mypkg.vendor.click so there's no top-level click available for import

  3. davidism commented on Jul 13, 2018

    @davidism
    Member

    Oh I see, it looks like most of the code is using relative imports, and the PR fixes a line that uses absolute.

  4. davidism commented on Jul 13, 2018

    @davidism
    Member

    Closed with merge.

  5. added this to the 7.0 milestone on Sep 19, 2018
  6. added 2 commits that reference this issue on Oct 8, 2018
  7. added a commit that references this issue on Oct 29, 2018
  8. locked as resolved and limited conversation to collaborators on Nov 13, 2020
  9. added
    windows
    on Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    windows

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions