setup.py 1.03 KB
Newer Older
Yannick Roehlly's avatar
Yannick Roehlly committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
# -*- coding: utf-8 -*-
"""
Copyright (C) 2012 Centre de données Astrophysiques de Marseille
Licensed under the CeCILL-v2 licence - see Licence_CeCILL_V2-en.txt

@author: Yannick Roehlly <yannick.roehlly@oamp.fr>

"""

from setuptools import setup, find_packages
from distutils.command.build import build



class custom_build(build):
    def run(self):
        # Build the database.
        import database_builder
        database_builder.build_base()

        # Proceed with the build
        build.run(self)

setup(
    name = "pcigale",
    version = "0.1a",
    packages = find_packages(exclude=["database_builder"]),

    install_requires = ['numpy', 'scipy', 'sqlalchemy'],
    requires = ['numpy','scipy', 'sqlalchemy'],

    include_package_data=True,
    cmdclass={"build": custom_build},
    package_data = {'': ['*.db']},

    author = "Yannick Roehlly",
    author_email = "yannick.roehlly@oamp.fr",
    description = "Python Code Investigating Galaxy Emission",
    license = "CeCILL-V2",
    keywords = "astrophysics, galaxy, SED fitting"
)