On Tue, 18 May 2010 08:27:09 am steve wrote: > Hello, > > I am preparing a package for distribution using distutils and when > writing the setup.py, i want to specific meta-data like version, > author, maintainer ...etc. > > My question is, assuming that I already have all of that information > in the package's __init__.py as __<meta-data>__ variables(*), is it > considered good 'style' to import the module one is packaging, in the > setup.py to access these variables ?
It's considered good style to keep the setup.py script as simple as possible. But with that proviso, there's nothing wrong with importing your own modulo to access the metadata. -- Steven D'Aprano _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor