setup.py 1.26 KB
Newer Older
Yannick Roehlly's avatar
Yannick Roehlly committed
1
# -*- coding: utf-8 -*-
2
# Copyright (C) 2012, 2015 Centre de données Astrophysiques de Marseille
3
# 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

from distutils.command.build import build

8 9
from setuptools import find_packages, setup

Yannick Roehlly's avatar
Yannick Roehlly committed
10 11 12 13 14 15 16 17 18 19

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

        # Proceed with the build
        build.run(self)

20
entry_points = {
21
    'console_scripts': ['pcigale = pcigale:main',
22
                        'pcigale-plots = pcigale_plots:main',
23
                        'pcigale-filters = pcigale_filters:main']
24 25
}

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

31
    install_requires=['numpy', 'scipy', 'sqlalchemy', 'matplotlib',
32
                      'configobj', 'astropy'],
33 34

    entry_points=entry_points,
Yannick Roehlly's avatar
Yannick Roehlly committed
35 36

    cmdclass={"build": custom_build},
37
    package_data={'pcigale': ['data/data.db'],
38
                  'pcigale_plots': ['data/CIGALE.png']},
39

40 41
    author="The CIGALE team",
    author_email="cigale@lam.fr",
42 43 44
    description="Python Code Investigating Galaxy Emission",
    license="CeCILL-V2",
    keywords="astrophysics, galaxy, SED fitting"
Yannick Roehlly's avatar
Yannick Roehlly committed
45
)