Opened 13 years ago

Closed 9 years ago

#4344 closed defect (fixed)

[Patch] Missing files in in .egg

Reported by: Niels B. Owned by: Noah Kantrowitz
Priority: high Component: ThemeEnginePlugin
Severity: normal Keywords: theme 0.11
Cc: Trac Release: 0.11


I built the plugin with the latest sources from svn/trunk. Then I installed the plugin via WebAdmin. When testing the plugin in my trac/admin/theme panel, the preview images didn't show. My error log was telling me that several files were missing.

My best guess is that is missing some files in the "package_data" section. This worked for me:

#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-

from setuptools import setup

    name = 'TracThemeEngine',
    version = '2.0',
    packages = ['themeengine'],
    package_data = { 'themeengine': ['templates/*.html', 'htdocs/*.*', 'htdocs/img/*.*', 'htdocs/*.js', 'htdocs/*.css', 'htdocs/skins/ie7/*.*', 'htdocs/skins/sweetie/*.*', 'htdocs/skins/tango/*.*' ] },

    author = 'Noah Kantrowitz',
    author_email = '',
    description = 'Provide a modular interface to styling Trac.',
    license = 'BSD',
    keywords = 'trac plugin theme style',
    url = '',
    classifiers = [
        'Framework :: Trac',
    install_requires = ['Trac>=0.11dev-r6696'],

    entry_points = {
        'trac.plugins': [
            'themeengine.web_ui = themeengine.web_ui',
            'themeengine.api = themeengine.api',
            'themeengine.admin = themeengine.admin',

Attachments (1)

t4344-missing-files.diff (1.5 KB) - added by Michael Renzmann 12 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 12 years ago by anonymous

The same happened to me, and the solution worked fine.

comment:2 Changed 12 years ago by Ryan J Ollos

Summary: missing files in in .egg[Patch] Missing files in in .egg

Changed 12 years ago by Michael Renzmann

Attachment: t4344-missing-files.diff added

comment:3 Changed 12 years ago by Michael Renzmann

I confirm that the described approach fixes the original issue. However, I suggest to use finer-grained patterns to prevent unwanted side effects (such as including the .svn directories in the .egg). The attached patch implements this approach, and it works fine here in the 0.11 sandbox for

comment:4 Changed 9 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

Should be fixed as of r7741.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Noah Kantrowitz.
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.