File: setup_serial.py

package info (click to toggle)
lammps 0~20120615.gite442279-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 128,448 kB
  • sloc: cpp: 321,874; fortran: 15,187; ansic: 11,007; python: 7,889; perl: 2,915; sh: 2,088; makefile: 924; f90: 374; objc: 238; lisp: 169; csh: 16; tcl: 6
file content (34 lines) | stat: -rwxr-xr-x 1,109 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
#!/usr/local/bin/python

"""
setup_serial.py file for LAMMPS with dummy serial MPI library
"""

from distutils.core import setup, Extension

import os, glob
path = os.path.dirname(os.getcwd())

# list of src files for LAMMPS and MPI STUBS

libfiles = glob.glob("%s/src/*.cpp" % path) + \
           glob.glob("%s/src/STUBS/*.c" % path)

lammps_library = Extension("_lammps_serial",
                           sources = libfiles,
                           define_macros = [("MPICH_IGNORE_CXX_SEEK",1),
                                            ("LAMMPS_GZIP",1),
                                            ("FFT_NONE",1),],
                           # src files for LAMMPS and MPI STUBS
                           include_dirs = ["../src", "../src/STUBS"]
                           )

setup(name = "lammps_serial",
      version = "28Nov11",
      author = "Steve Plimpton",
      author_email = "sjplimp@sandia.gov",
      url = "http://lammps.sandia.gov",
      description = """LAMMPS molecular dynamics library - serial""",
      py_modules = ["lammps"],
      ext_modules = [lammps_library]
      )