setup.py 1.13 KB
Newer Older
Yannick Roehlly's avatar
Yannick Roehlly committed
1
# -*- coding: utf-8 -*-
2 3
# Copyright (C) 2012, 2013 Centre de données Astrophysiques de Marseille
# Licensed under the CeCILL-v2 licence - see Licence_CeCILL_V2-en.txt
Yannick Roehlly's avatar
Yannick Roehlly committed
4
# Author: Yannick Roehlly
Yannick Roehlly's avatar
Yannick Roehlly committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18

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)

19 20 21 22
entry_points = {
    'console_scripts': ['pcigale = pcigale:main']
}

Yannick Roehlly's avatar
Yannick Roehlly committed
23
setup(
24 25 26
    name="pcigale",
    version="0.1a",
    packages=find_packages(exclude=["database_builder"]),
Yannick Roehlly's avatar
Yannick Roehlly committed
27

Yannick Roehlly's avatar
Yannick Roehlly committed
28
    install_requires=['numpy', 'scipy', 'sqlalchemy', 'atpy', 'matplotlib',
29
                      'configobj', 'progressbar', 'pyfits', 'astropy'],
30 31

    entry_points=entry_points,
Yannick Roehlly's avatar
Yannick Roehlly committed
32 33 34

    include_package_data=True,
    cmdclass={"build": custom_build},
35 36 37 38 39 40 41
    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
42 43

)