[Distutils] introspecting package data

Jim Fulton jim at zope.com
Tue Jun 30 15:37:45 CEST 2009


On Jun 30, 2009, at 9:24 AM, Chris Withers wrote:

> Tarek Ziadé wrote:
>> On Tue, Jun 30, 2009 at 1:59 PM, Chris  
>> Withers<chris at simplistix.co.uk> wrote:
>>> Hi All,
>>>
>>> I hope this is a silly question and I'm just missing something,  
>>> but how do I
>>> introspect information from setup.py when I'm not using setuptools?
>>>
>>> (ie: pkg_resources for those who refuse to drink the setuptools  
>>> koolaid?)
>>>
>>> cheers,
>> What do you want to do exactly ? And do you do it with setuptools ?
>> If it's about setup.py I'm guesssing it's done on a distribution
>> source, not an installed source ?
>
> I'm building Sphinx documentation, but I want the conf.py to be  
> driven right from the package it's in, rather than having to  
> manually enter the information again...


I recommend creating a data file that both setup.py and sphinx's  
config.py read.

Jim

--
Jim Fulton
Zope Corporation




More information about the Distutils-SIG mailing list