[Tutor] Question about packaging with distutils (specifying metadata)
Steven D'Aprano
steve at pearwood.info
Tue May 18 01:53:18 CEST 2010
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
More information about the Tutor
mailing list