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

add {implementation} to sysconfig.py #66504

Closed
mattip opened this issue Aug 30, 2014 · 4 comments
Closed

add {implementation} to sysconfig.py #66504

mattip opened this issue Aug 30, 2014 · 4 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@mattip
Copy link
Contributor

mattip commented Aug 30, 2014

BPO 22308
Nosy @merwok, @mattip
Files
  • sysconfig_head.patch: diff to HEAD
  • sysconfig_2_7.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 2020-10-22.21:49:13.111>
    created_at = <Date 2014-08-30.18:49:36.514>
    labels = ['type-bug', 'library']
    title = 'add {implementation} to sysconfig.py'
    updated_at = <Date 2020-10-22.21:49:13.110>
    user = 'https://github.com/mattip'

    bugs.python.org fields:

    activity = <Date 2020-10-22.21:49:13.110>
    actor = 'eric.araujo'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-10-22.21:49:13.111>
    closer = 'eric.araujo'
    components = ['Library (Lib)']
    creation = <Date 2014-08-30.18:49:36.514>
    creator = 'mattip'
    dependencies = []
    files = ['36507', '36508']
    hgrepos = []
    issue_num = 22308
    keywords = ['patch']
    message_count = 4.0
    messages = ['226143', '226144', '237705', '379367']
    nosy_count = 2.0
    nosy_names = ['eric.araujo', 'mattip']
    pr_nums = []
    priority = 'normal'
    resolution = 'wont fix'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue22308'
    versions = []

    @mattip
    Copy link
    Contributor Author

    mattip commented Aug 30, 2014

    An issue was reported on PyPy where a user had a ~/.local/lib/python2.7/site-packages directory that contained cpython specific libraries. We trakced it down to posix_user in sysconfig.py being set to an implementation-specific cpython path, but used by pypy.
    This patch against HEAD adds {implementation} and {implementation_lower} fields to _CONFIG_VARS, making sysconfig.py compatable with other python implementations. Perhaps valuable to jython as well, which would require modifying _get_implementation() accordingly

    @mattip mattip added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Aug 30, 2014
    @mattip
    Copy link
    Contributor Author

    mattip commented Aug 30, 2014

    adding a diff patch to 2.7

    @mattip
    Copy link
    Contributor Author

    mattip commented Mar 9, 2015

    any traction on this?

    @merwok
    Copy link
    Member

    merwok commented Oct 22, 2020

    This is a non-trivial change that would impact many packaging tools, and as such should be discussed on mailing list or https://discuss.python.org/

    @merwok merwok closed this as completed Oct 22, 2020
    @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-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants