Ticket #7984 (closed defect: fixed)
Opened 3 years ago
Last modified 18 months ago
spam-filter-captcha did not install fonts directory
| Reported by: | kiki@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | plugin - spam-filter |
| Component: | plugin/spamfilter | Version: | 0.12dev |
| Severity: | normal | Keywords: | tracspamfilter captcha verify |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
This may very well be a pilot error, as I didn't find any other bug report and meanwhile others ought to have come across this...
I have installed the latest version of trac (Trac 0.12dev-r7776) on a debian system.
I installed from trunk after checking out and running setup.py.
I made the same with the spam-filter-captcha plugin, which I found in "SandBox".
When installing spam-filter-captcha plugin by running setup.py it did NOT copy the fonts directory with vera.ttf into the package in the python site-packages directory.
After copying the "fonts" directory "by hand" from the svn checkout folder into the appropriate place INSIDE the TracSpamFilter? package (namely that was in my case:
sudo cp -r tracspamfilter/fonts /usr/lib/python2.5/site-packages/TracSpamFilter-0.2.1cdev_r6883-py2.5.egg/tracspamfilter/fonts
the image captcha started to work like a charme.
Being a python noob, I don't know, where to change the installer script in order to place the fonts directory at the correct location, but I guess it is not very complicated.
Please contact me, if you need further details.
Attachments
Change History
comment:1 Changed 3 years ago by cboos
- Milestone set to not applicable
comment:2 Changed 2 years ago by cboos
- Keywords verify added
- Milestone changed from not applicable to spam-filter-plugin
- Owner set to cboos
comment:3 Changed 19 months ago by michaelc@…
comment:4 Changed 18 months ago by dstoecker
- Resolution set to fixed
- Status changed from new to closed
In r9991.



This should be fixed in the setup.py file by including the relevant package_data.
Index: setup.py =================================================================== --- setup.py (revision 9965) +++ setup.py (working copy) @@ -33,7 +33,7 @@ keywords='trac plugin', packages = find_packages(exclude=['*.tests*']), - package_data = {'tracspamfilter': ['templates/*', 'htdocs/*']}, + package_data = {'tracspamfilter': ['templates/*', 'htdocs/*', 'fonts/*']}, extras_require = { 'DNS': ['dnspython>=1.3.5'], 'SpamBayes': ['spambayes'],