File: setup.py

package info (click to toggle)
pymad 0.11.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 244 kB
  • sloc: ansic: 518; python: 153; makefile: 6
file content (21 lines) | stat: -rwxr-xr-x 439 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python

"""Setup script for the MAD module distribution."""

from distutils.core import setup
from distutils.extension import Extension

from setuptools_scm import get_version

MADMODULE = Extension(
    name="mad",
    sources=["src/madmodule.c", "src/pymadfile.c", "src/xing.c"],
    define_macros=[
        ("VERSION", '"{}"'.format(get_version())),
    ],
    libraries=["mad"],
)

setup(
    ext_modules=[MADMODULE],
)