File: setup.py

package info (click to toggle)
sncosmo 2.12.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,628 kB
  • sloc: python: 7,278; cpp: 184; makefile: 130; sh: 1
file content (26 lines) | stat: -rwxr-xr-x 605 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import numpy
import os
import re

from setuptools import setup
from setuptools.extension import Extension

# Synchronize version from code.
VERSION = re.findall(r"__version__ = \"(.*?)\"",
                     open(os.path.join("sncosmo", "__init__.py")).read())[0]

# Cython extensions
extensions = [
    Extension(
        "sncosmo.salt2utils",
        sources=[os.path.join("sncosmo", "salt2utils.pyx")],
        include_dirs=[numpy.get_include()],
    )
]

setup(
    version=VERSION,
    ext_modules=extensions,
)