Modify

Opened 13 years ago

Closed 12 years ago

#9963 closed enhancement (fixed)

Add minimum required Python version (2.5)

Reported by: Ryan J Ollos Owned by: Radek Bartoň
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords: version
Cc: Trac Release: 0.11

Description

Follow-up to this mailing list post and #9146.

#9800 demonstrates a way to implement it. I'd be happy to push the change to your repository if you'd like.

Attachments (0)

Change History (2)

comment:1 Changed 13 years ago by Ryan J Ollos

Keywords: version added

Well, #9800 doesn't give the exact recipe, but it is contained in the setup.py for Trac:

min_python = (2, 5)
if sys.version_info < min_python:
    print "Trac requires Python %d.%d or later" % min_python
    sys.exit(1)
if sys.version_info >= (3,):
    print "Trac doesn't support Python 3 (yet)"
    sys.exit(1)

So you could just copy that into your setup.py and change the printed message.

comment:2 Changed 12 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

(In [12057]) Fixes #9963, Refs #9800, #8276, #8803, #9146: Added check in setup.py for minimum required Python version. Python 2.5 is currently required. Later, we'll aim to restore full Python 2.4 compatibility.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Radek Bartoň.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.