setup.py 1.15 KB
Newer Older
Yannick Roehlly's avatar
Yannick Roehlly committed
1 2
# -*- coding: utf-8 -*-
"""
Yannick Roehlly's avatar
Yannick Roehlly committed
3
Copyright (C) 2012, 2013 Centre de données Astrophysiques de Marseille
Yannick Roehlly's avatar
Yannick Roehlly committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
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)

23 24 25 26
entry_points = {
    'console_scripts': ['pcigale = pcigale:main']
}

Yannick Roehlly's avatar
Yannick Roehlly committed
27
setup(
28 29 30
    name="pcigale",
    version="0.1a",
    packages=find_packages(exclude=["database_builder"]),
Yannick Roehlly's avatar
Yannick Roehlly committed
31

Yannick Roehlly's avatar
Yannick Roehlly committed
32 33
    install_requires=['numpy', 'scipy', 'sqlalchemy', 'atpy', 'matplotlib',
                      'configobj', 'progressbar', 'pyfits'],
34 35

    entry_points=entry_points,
Yannick Roehlly's avatar
Yannick Roehlly committed
36 37 38

    include_package_data=True,
    cmdclass={"build": custom_build},
39 40 41 42 43 44 45
    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"
Yannick Roehlly's avatar
Yannick Roehlly committed
46 47

)