#!/usr/bin/env python """ setup.py for building and installing MayaVi """ __author__ = "Prabhu Ramachandran " __version__ = "$Revision: 1.11 $" __date__ = "$Date: 2005/08/25 10:32:10 $" __credits__ = """Many thanks to Pearu Peterson for helping with this setup.py and helping with packaging MayaVi.""" from __version__ import version import glob, sys, os import os.path from distutils.core import setup from distutils.command.install_data import install_data from distutils.command.install_scripts import install_scripts try: import py2exe except ImportError: pass # This class has been copied from scipy's setup.py and is useful to # install the data files inside the project directory rather than some # arbitrary place. class my_install_data (install_data): def finalize_options (self): self.set_undefined_options ('install', ('install_lib', 'install_dir'), ('root', 'root'), ('force', 'force'), ) # This renames the mayavi script to a MayaVi.pyw script on win32. class my_install_scripts (install_scripts): def run (self): install_scripts.run (self) if os.name != 'posix': # Rename