Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

#2077 closed defect (fixed)

webadmin plugin install fails b/c it refs setuptools 0.6a1 (which is not compatible with Trac 0.9x)

Reported by: jeoffwilks@… Owned by: Christopher Lenz
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords:
Cc: jeoffwilks@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

If you check out the WebAdmin plugin using:

svn co http://svn.edgewall.com/repos/trac/branches/jonas-dev/webadmin/

…then a folder ez_setup/ is included using svn:externals (see [2085]), and the file webadmin/ez_setup/__init__.py line 17 contains the following:

DEFAULT_VERSION = "0.6a1"

…which is not compatible with Trac 0.9. The incompatibility with setuptools 0.6x is documented on the TracPlugins wiki page, but I also confirmed this in my own attempts. You can build the plugin egg, but when Trac runs it fails to load the plugin. (The actual error is Object EggMetadata has no attribute 'metadata' if I remember right).

Is there a way to override the DEFAULT_VERSION and set it to 0.5a13 until the incompatibility between Trac 0.9x and setuptools 0.6x is resolved?

Attachments (0)

Change History (5)

comment:1 by anonymous, 19 years ago

Cc: Jonas Borgström removed
Owner: changed from Christopher Lenz to anonymous
Status: newassigned
Version: 0.8.4

comment:2 by Christopher Lenz, 19 years ago

Owner: changed from anonymous to Christopher Lenz
Status: assignednew

that was me

comment:3 by Christopher Lenz, 19 years ago

Status: newassigned

comment:4 by jeoffwilks@…, 19 years ago

By the way, I was able to get around it by edting the DEFAULT_VERSION line to read:

DEFAULT_VERSION = "0.5a13"

After that, the bdist_egg result loads fine into Trac. However, this requires the person who downloads the webadmin plugin package to know that they need to manually make that change. So the better solution (until Trac supports setuptools 0.6x) would be to point the svn:externals property at a different URL that downloads the 0.5a13-configured ez_setup automatically.

From reading the revision history it looks like ez_setup rev 2088 is the last revision to support setuptools 0.5a13.

comment:5 by Christopher Lenz, 19 years ago

Resolution: fixed
Status: assignedclosed

Trac now supports setuptools 0.6a1 (since [2247]).

Anyway, I've completely removed ez_setup from the WebAdmin source in [2249]. To use plugins in Trac, you need a properly installed setuptools package anyway.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.