extension: How to set up additional dependencies in Setup.in
Konrad Hinsen
hinsen at cnrs-orleans.fr
Tue May 22 12:55:40 EDT 2001
Dave Kuhlman <dkuhlman at rexx.com> writes:
> message. So, is there a way to get setup.py to run "./configure"
> (or any other script or program) before or after a build?
Define your own "my_build" class by subclassing distutils.command.build
and adding a call to os.system('./configure') to the __init__ method.
In the call to the setup routine, add the keyword argument
cmdclass = {'build': my_build}
That should be all.
--
-------------------------------------------------------------------------------
Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24
Rue Charles Sadron | Fax: +33-2.38.63.15.17
45071 Orleans Cedex 2 | Deutsch/Esperanto/English/
France | Nederlands/Francais
-------------------------------------------------------------------------------
More information about the Python-list
mailing list