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

PEP 370 #46132

Closed
tiran opened this issue Jan 11, 2008 · 6 comments
Closed

PEP 370 #46132

tiran opened this issue Jan 11, 2008 · 6 comments
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@tiran
Copy link
Member

tiran commented Jan 11, 2008

BPO 1799
Nosy @gpshead, @jcea, @tiran
Files
  • pep370.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 = None
    closed_at = <Date 2008-05-08.20:44:14.339>
    created_at = <Date 2008-01-11.21:23:28.300>
    labels = ['type-feature', 'library']
    title = 'PEP 370'
    updated_at = <Date 2008-05-08.20:44:14.338>
    user = 'https://github.com/tiran'

    bugs.python.org fields:

    activity = <Date 2008-05-08.20:44:14.338>
    actor = 'christian.heimes'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-05-08.20:44:14.339>
    closer = 'christian.heimes'
    components = ['Distutils', 'Library (Lib)']
    creation = <Date 2008-01-11.21:23:28.300>
    creator = 'christian.heimes'
    dependencies = []
    files = ['10199']
    hgrepos = []
    issue_num = 1799
    keywords = ['patch']
    message_count = 6.0
    messages = ['59754', '59871', '59883', '59989', '66281', '66448']
    nosy_count = 3.0
    nosy_names = ['gregory.p.smith', 'jcea', 'christian.heimes']
    pr_nums = []
    priority = 'critical'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue1799'
    versions = ['Python 2.6']

    @tiran
    Copy link
    Member Author

    tiran commented Jan 11, 2008

    The patch adds a per user site-packages directory and a --user option
    for distutils' setup.py install. It also cleans up site.py a bit and
    makes addsitepackages() extensible.

    I'm going to write a mini PEP soonish.

    @tiran tiran added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Jan 11, 2008
    @tiran
    Copy link
    Member Author

    tiran commented Jan 13, 2008

    The new patch adds the -s option, checks for getuid() == geteuid() and
    adds sys.flags (see bpo-1816).

    @gpshead
    Copy link
    Member

    gpshead commented Jan 14, 2008

    nice. ping a mac developer for what to do with the darwin stuff that
    you commented out.

    It'd also be nice to have unit tests for the new behavior. Though i
    don't think we have many (any?) of that type of regression test right
    now. Such a test would need to setup a test user site package,
    os.system another instance python with and without -s to confirm if it
    saw the test site package that was just created or not followed by
    cleaning it all up.

    @tiran
    Copy link
    Member Author

    tiran commented Jan 16, 2008

    Future patches will be applied to the branch directly:

    http://svn.python.org/view/sandbox/trunk/pep370

    @tiran
    Copy link
    Member Author

    tiran commented May 5, 2008

    The new patch applies cleanly in the trunk.

    @tiran tiran changed the title Per user site-packages and setup.py install --user patch PEP 370 May 5, 2008
    @tiran
    Copy link
    Member Author

    tiran commented May 8, 2008

    The PEP-370 has been accepted and the patch has been applied.

    @tiran tiran closed this as completed May 8, 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
    stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants