Aug. 28, 2007
1:17 p.m.
Is there a way to obtain the version info of an egg from with Python code stored with the egg? Usecase: an egg contains several commandline utils (configured and installed using entry point). A dedicated --version option should display the overall version of the egg. Tnx, Andreas
Aug. 28, 2007
3:30 p.m.
At 03:17 PM 8/28/2007 +0200, Andreas Jung wrote:
Is there a way to obtain the version info of an egg from with Python code stored with the egg?
Usecase: an egg contains several commandline utils (configured and installed using entry point). A dedicated --version option should display the overall version of the egg.
pkg_resources.require('MyProjectName')[0].version
6928
Age (days ago)
6928
Last active (days ago)
1 comments
2 participants
participants (2)
-
Andreas Jung -
Phillip J. Eby