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

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 22
    'console_scripts': ['pcigale = pcigale:main',
                        'pcigale-plots = pcigale_plots:main']
23 24
}

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

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

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

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

    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
44
)