[Distutils] Header installation

Konrad Hinsen hinsen@cnrs-orleans.fr
Thu Mar 29 09:48:01 2001


> What I really want is replace $dist_name with the name of my package,
> for the rest I fully trust distutils.

You just have to give up in order to realize that this can be done
rather easily:

  from distutils.command.install_headers import install_headers

  class modified_install_headers(install_headers):

      def finalize_options(self):
	  install_headers.finalize_options(self)
	  self.install_dir = \
		  os.path.join(os.path.split(self.install_dir)[0],
                               'Scientific')

  setup( ... , cmdclass = {'install_headers': modified_install_headers})

Konrad.
-- 
-------------------------------------------------------------------------------
Konrad Hinsen                            | E-Mail: hinsen@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
-------------------------------------------------------------------------------