--- setup.py~ 2002-07-07 20:06:49.000000000 +0200 +++ setup.py 2002-07-07 19:55:31.000000000 +0200 @@ -50,32 +50,32 @@ ####################################################################### ## test if we need to build togl -try: - from setup import togl_setup - class togl_build(build_ext): - def run(self): - build_ext.run(self) - # togl_build can read instance variables of build_ext - # for example: compiler, built_temp, force, debug, dry_run, ... - if self.distribution.BUILD_TOGL: - togl_setup.togl_build(self, self.distribution.include_dirs, self.distribution.library_dirs, self.distribution.togl_libs) - class togl_install(install): - togl_outfiles = None - def run(self): - install.run(self) - # togl_install can read instance variables of install_lib - # it has to return the filenames of all installed files - if self.distribution.BUILD_TOGL: - self.togl_outfiles = togl_setup.togl_install(self) - def get_outputs(self): - if self.togl_outfiles is None: - self.togl_outfiles = togl_setup.togl_install(self,dry_run=1) - return install.get_outputs(self) + self.togl_outfiles -except ImportError: - # either Tkinter or togl_setup doesn't exist - # use original classes - togl_build = build_ext - togl_install = install +#try: +# from setup import togl_setup +# class togl_build(build_ext): +# def run(self): +# build_ext.run(self) +# # togl_build can read instance variables of build_ext +# # for example: compiler, built_temp, force, debug, dry_run, ... +# if self.distribution.BUILD_TOGL: +# togl_setup.togl_build(self, self.distribution.include_dirs, self.distribution.library_dirs, self.distribution.togl_libs) +# class togl_install(install): +# togl_outfiles = None +# def run(self): +# install.run(self) +# # togl_install can read instance variables of install_lib +# # it has to return the filenames of all installed files +# if self.distribution.BUILD_TOGL: +# self.togl_outfiles = togl_setup.togl_install(self) +# def get_outputs(self): +# if self.togl_outfiles is None: +# self.togl_outfiles = togl_setup.togl_install(self,dry_run=1) +# return install.get_outputs(self) + self.togl_outfiles +#except ImportError: +# # either Tkinter or togl_setup doesn't exist +# # use original classes +# togl_build = build_ext +# togl_install = install setup (name = 'PyOpenGL', @@ -97,8 +97,8 @@ 'build_doc':build_doc, # 'build_clib':build_clib, 'build_py':build_py, - 'build_ext':togl_build, - 'install':togl_install, +# 'build_ext':togl_build, +# 'install':togl_install, # the next line is very important # because we use another format for data_files 'install_data': my_install_data},