Re: Need advice on distributing small module

2009-05-16 Thread Nick Craig-Wood
kj wrote: > The module has only one non-standard dependency, described by the > following code: > > if sys.version_info[:2] >= (2, 6): > import json > else: > import simplejson as json I think try: import json except ImportError: import simplejson as json Is more pythonic

Re: Need advice on distributing small module

2009-05-15 Thread kj
In <99246143-a853-4041-bc45-eeb648388...@r3g2000vbp.googlegroups.com> Carl Banks writes: >On May 14, 1:26=A0pm, kj wrote: >> I've written a tiny module that I'd like to make available online >> from my website. =A0This module is not "production-grade" code; it >> is meant only as an illustratio

Re: Need advice on distributing small module

2009-05-14 Thread Carl Banks
On May 14, 1:26 pm, kj wrote: > I've written a tiny module that I'd like to make available online > from my website.  This module is not "production-grade" code; it > is meant only as an illustration, but still I'd like to make its > download and installation as painless as possible. > > I could s

Need advice on distributing small module

2009-05-14 Thread kj
I've written a tiny module that I'd like to make available online from my website. This module is not "production-grade" code; it is meant only as an illustration, but still I'd like to make its download and installation as painless as possible. I could simply bundle everything into a .tgz fil