[Distutils] Intermediat library and sdist problem

Rene Liebscher R.Liebscher@gmx.de
Tue Aug 7 04:42:01 2001


Sophie Coon wrote:
> 
> Hi,
> I am trying to write a setup.py to create a source distribution for a
> wrapped library. The trick is that I need to build an intermediate
> library and the sdist command doesn't seem to like it.
>
> ...
>
> python2.0 setup.py sdist gives me the following error message:
> 
> Traceback (innermost last):
>   File "setup.py", line 44, in ?
>     libraries=['libamber'])
>  ...
>   File
> "/tsri/python/share/lib/python1.5/site-packages/distutils/cmd.py", line
> 107, in __getattr__
>     raise AttributeError, attr
> AttributeError: get_source_files
> 
> I can very successfully run the following command:
> python2.0 setup.py bdist
> python2.0 setup.py build
> In the last case I have a working package that I can import from a
> python interpreter.
> 
> I am pretty sure that the sdist command doesn't work because the
> intermediate library has not benn build yet when trying to do the tar
> ball. Did I make a mistake in the setup.py? if not is there a way around
> that problem?
> 
> Thanks for any suggestions !
> Sophie
Your setup.py is probably ok, it is a distutils bug, it is
already filed in the bugs database ([ #414032 ] clib option is broken)
http://sourceforge.net/tracker/index.php?func=detail&aid=414032&group_id=5470&atid=105470

Kind regards
Rene Liebscher