Re: [Distutils] Optional requirements with "extra"
11 Aug
2010
11 Aug
'10
10:46 a.m.
At 02:57 PM 8/11/2010 +0200, Mathieu Leduc-Hamel wrote:
If you install the package with the satchmo support like that:
storelocator[satchmo]
Then I would like be able with pkg_resources or something like to check in the code if the satchmo support has been enabled or not, if yes, i'll change some part of my package or not.
try: pkg_resources.require('storelocator[satchmo]') except pkg_resources.ResolutionError: pass # failure case else: pass # success case
5004
Age (days ago)
5004
Last active (days ago)
0 comments
1 participants
participants (1)
-
P.J. Eby