[Distutils] Intermediat library and sdist problem
Tue Aug 7 04:42:01 2001
Sophie Coon wrote:
> 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 ?
> "/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 !
Your setup.py is probably ok, it is a distutils bug, it is
already filed in the bugs database ([ #414032 ] clib option is broken)