Edgewall Software

Opened 16 years ago

Closed 16 years ago

#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

Change History (1)

comment:1 Changed 16 years ago by cmlenz

  • Milestone changed from 0.6 to 0.5.1
  • Resolution set to fixed
  • Status changed from new to closed
  • Version changed from devel to 0.5

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.

Note: See TracTickets for help on using tickets.