# Use the find_packages tool to locate all packages and modules packagenames = find_packages() # Treat everything in scripts except README.rst as a script to be installed scripts = glob.glob(os.path.join('scripts', '*')) scripts.remove(os.path.join('scripts', 'README.rst')) # Check that Numpy is installed. # NOTE: We cannot use setuptools/distribute/packaging to handle this # dependency for us, since some of the subpackages need to be able to # access numpy at build time, and they are configured before # setuptools has a chance to check and resolve the dependency. setup_helpers.check_numpy() # This dictionary stores the command classes used in setup below cmdclassd = {'test': setup_helpers.setup_test_command('astropy'), # Use distutils' sdist because it respects package_data. # setuptools/distributes sdist requires duplication of # information in MANIFEST.in 'sdist': sdist.sdist} # Additional C extensions that are not Cython-based should be added here. extensions = [] # A dictionary to keep track of all package data to install package_data = {'astropy': ['data/*']} # A dictionary to keep track of extra packagedir mappings package_dirs = {}
# Use the find_packages tool to locate all packages and modules packagenames = find_packages() # Treat everything in scripts except README.rst as a script to be installed scripts = glob.glob('scripts/*') scripts.remove('scripts/README.rst') # Check that Numpy is installed. # NOTE: We cannot use setuptools/distribute/packaging to handle this # dependency for us, since some of the subpackages need to be able to # access numpy at build time, and they are configured before # setuptools has a chance to check and resolve the dependency. setup_helpers.check_numpy() # This dictionary stores the command classes used in setup below cmdclassd = {'test': setup_helpers.setup_test_command(PACKAGENAME)} # Additional C extensions that are not Cython-based should be added here. extensions = [] # A dictionary to keep track of all package data to install package_data = {PACKAGENAME: ['data/*']} # A dictionary to keep track of extra packagedir mappings package_dirs = {} # Update extensions, package_data, packagenames and package_dirs from # any sub-packages that define their own extension modules and package # data. See the docstring for setup_helpers.update_package_files for # more details. setup_helpers.update_package_files(PACKAGENAME, extensions, package_data,