setup.py 1.37 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

Yannick Roehlly's avatar
Yannick Roehlly committed
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 = {
Yannick Roehlly's avatar
Yannick Roehlly committed
21
    'console_scripts': ['pcigale = pcigale:main',
22
                        'pcigale-plots = pcigale_plots:main',
23
                        'pcigale-filters = pcigale_filters:main',
24
                        'pcigale-mock = pcigale_mock:main']
25 26
}

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

Médéric Boquien's avatar
Médéric Boquien committed
32
    install_requires=['numpy', 'scipy', 'sqlalchemy', 'matplotlib',
33
                      'configobj', 'astropy'],
34 35

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

    cmdclass={"build": custom_build},
Yannick Roehlly's avatar
Yannick Roehlly committed
38
    package_data={'pcigale': ['data/data.db'],
39
                  'pcigale_plots': ['data/CIGALE.png'],
40
                  'pcigale_mock': ['data/CIGALE.png']},
41

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