Edgewall Software

Ticket #241 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Attachments

Change History

Changed 2 years ago by cmlenz

  • status changed from new to closed
  • version changed from devel to 0.5
  • resolution set to fixed
  • milestone changed from 0.6 to 0.5.1

I've added some extra exception catching in [894]. Now, when either pkg_resources is not available, or pkg_resources can't find Genshi egg info, __version__ will be none.

I'm not sure about generating an extra .py file at build time, would rather like to avoid that.

Add/Change #241 (Genshi in a py2app'd application)

Author


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


Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.