Skip to content

New functions in site.py to get user/global site packages paths #50942

Closed

Description

@tarekziade
BPO 6693
Nosy @malemburg, @tiran, @tarekziade
Files
  • site.patch
  • 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/tarekziade'
    closed_at = <Date 2009-08-20.21:28:39.228>
    created_at = <Date 2009-08-13.08:31:56.754>
    labels = ['type-feature', 'library']
    title = 'New functions in site.py to get user/global site packages paths'
    updated_at = <Date 2009-08-20.21:28:39.227>
    user = 'https://github.com/tarekziade'

    bugs.python.org fields:

    activity = <Date 2009-08-20.21:28:39.227>
    actor = 'tarek'
    assignee = 'tarek'
    closed = True
    closed_date = <Date 2009-08-20.21:28:39.228>
    closer = 'tarek'
    components = ['Library (Lib)']
    creation = <Date 2009-08-13.08:31:56.754>
    creator = 'tarek'
    dependencies = []
    files = ['14719']
    hgrepos = []
    issue_num = 6693
    keywords = ['patch']
    message_count = 4.0
    messages = ['91516', '91517', '91545', '91784']
    nosy_count = 3.0
    nosy_names = ['lemburg', 'christian.heimes', 'tarek']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue6693'
    versions = ['Python 2.7', 'Python 3.2']

    Activity

    1. tarekziade commented on Aug 13, 2009

      tarekziademannequin
      MannequinAuthor

      As discussed in Distutils-SIG.

      Here's a patch for site.py that adds:

      • getsitepackages : Returns a list containing all global site-packages
        directories (and possibly site-python).

      • getusersitepackages: Returns the user-specific site-packages directory
        path.

      • getuserbase: Returns the user base directory path.

    2. self-assigned this
      on Aug 13, 2009
    3. added
      stdlib
      type-feature
      on Aug 13, 2009
    4. malemburg commented on Aug 13, 2009

      @malemburg
      Member

      Two things:

      • The globals should get a comment explaining what their purpose is and
        where they are being initialized.

      • The get*() functions should only initialize the globals if they are
        set to None. In the patch, they are initialized every time the functions
        are called.

    5. tarekziade commented on Aug 14, 2009

      tarekziademannequin
      MannequinAuthor

      Done.

      I've put Christian in the loop since he implemented the PEP-370
      feature, to make sure these changes are fine with him.

    6. tarekziade commented on Aug 20, 2009

      tarekziademannequin
      MannequinAuthor

      applied in r74526 and r74529

    7. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    stdlibtype-feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions