Ticket #241 (closed defect: fixed)
Genshi in a py2app'd application
| Reported by: | robin@… | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | major | Milestone: | 0.5.1 |
| Component: | General | Version: | 0.5 |
| Keywords: | Cc: |
Description
When Genshi is used in an application that is bundled with py2app on the Mac then the line in init.py that is getting the version number from pkg_resources is failing, because the eggs are not put into the bundle as eggs. It results in the pkg_resources.DistributionNotFound? exception, so that should probably be checked for in the try/except, or perhaps just checking for sys.frozen and not attempt to use pkg_resources at all in that case.
What I usually do is generate a version.py from setup.py, and then import version in init.py
