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

Version number handling #36521

Closed
akuchling opened this issue Apr 29, 2002 · 6 comments
Closed

Version number handling #36521

akuchling opened this issue Apr 29, 2002 · 6 comments
Assignees
Labels
stdlib Python modules in the Lib dir

Comments

@akuchling
Copy link
Member

BPO 550364
Nosy @akuchling, @rhettinger
Files
  • patch.version: Add sysconfig.get_python_version()
  • 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/akuchling'
    closed_at = <Date 2002-11-14.01:45:12.000>
    created_at = <Date 2002-04-29.20:28:54.000>
    labels = ['library']
    title = 'Version number handling'
    updated_at = <Date 2002-11-14.01:45:12.000>
    user = 'https://github.com/akuchling'

    bugs.python.org fields:

    activity = <Date 2002-11-14.01:45:12.000>
    actor = 'akuchling'
    assignee = 'akuchling'
    closed = True
    closed_date = None
    closer = None
    components = ['Distutils']
    creation = <Date 2002-04-29.20:28:54.000>
    creator = 'akuchling'
    dependencies = []
    files = ['467']
    hgrepos = []
    issue_num = 550364
    keywords = []
    message_count = 6.0
    messages = ['10617', '10618', '10619', '10620', '10621', '10622']
    nosy_count = 3.0
    nosy_names = ['jhylton', 'akuchling', 'rhettinger']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue550364'
    versions = []

    @akuchling
    Copy link
    Member Author

    A while ago, Tim Peters mentioned in a check-in message:

    "Change the version string from "2.2+" to "2.3a0". distutils
    peels off
    the first 3 characters of this string in several places, so for as
    long
    as they remain "2.2" it confuses the heck out of attempts to
    build 2.3 stuff using distutils."

    It's true; distutils does sys.version[:3] in a few places.
    The attached patch factors this out so it'll be easier to
    change.

    (There's also a Python development issue here, namely when
    the version number gets bumped in the CVS tree.)

    @akuchling akuchling self-assigned this Apr 29, 2002
    @akuchling akuchling added the stdlib Python modules in the Lib dir label Apr 29, 2002
    @akuchling akuchling self-assigned this Apr 29, 2002
    @akuchling akuchling added the stdlib Python modules in the Lib dir label Apr 29, 2002
    @rhettinger
    Copy link
    Contributor

    Logged In: YES
    user_id=80475

    Nice factoring.

    Would it be more bulletproof to use sys.version_info
    instead of sys.version[:3]? Perhaps, wrap it in try/except
    to catch versions before Py2.0.

    @akuchling
    Copy link
    Member Author

    Logged In: YES
    user_id=11375

    Maybe. But I don't know if I still care about 1.5.2. If
    I don't, then the code can just always use sys.version_info.

    @jhylton
    Copy link
    Mannequin

    jhylton mannequin commented Jul 25, 2002

    Logged In: YES
    user_id=31392

    Do we still care about this patch?

    @akuchling
    Copy link
    Member Author

    Logged In: YES
    user_id=11375

    Probably we can just use sys.version_info, since we don't care about
    1.5.2 any more.

    @akuchling
    Copy link
    Member Author

    Logged In: YES
    user_id=11375

    Checked in, since MAL argued convincingly for maintaining
    1.5.2 support.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 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
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants