File: setup.py

package info (click to toggle)
mmtk 2.7.9-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 11,788 kB
  • ctags: 6,600
  • sloc: python: 18,050; ansic: 12,400; makefile: 129; csh: 3
file content (38 lines) | stat: -rw-r--r-- 1,290 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python

from distutils.core import setup, Extension
import os, sys

compile_args = []
include_dirs = ['.']

from Scientific import N
try:
    num_package = N.package
except AttributeError:
    num_package = "Numeric"
if num_package == "NumPy":
    compile_args.append("-DNUMPY=1")
    if sys.platform == 'win32':
        include_dirs.append(os.path.join(sys.prefix,
                            "Lib/site-packages/numpy/core/include"))
    else:
        include_dirs.append(os.path.join(sys.prefix,
                            "lib/python%s.%s/site-packages/numpy/core/include"
                             % sys.version_info [:2]))

setup (name = "MMTK-LangevinDynamics",
       version = "2.7",
       description = "Langevin dynamics module for the Molecular Modelling Toolkit",
       author = "Konrad Hinsen",
       author_email = "hinsen@cnrs-orleans.fr",
       url = "http://dirac.cnrs-orleans.fr/MMTK/",
       license = "CeCILL-C",

       py_modules = ['LangevinDynamics'],
       ext_modules = [Extension('MMTK_langevin',
                                ['./MMTK_langevin.c', 'ranf.c', 'pmath_rng.c'],
                                extra_compile_args = compile_args,
                                include_dirs=include_dirs),
                      ],
       )