git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5201 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
34
python/setup_serial.py
Executable file
34
python/setup_serial.py
Executable file
@ -0,0 +1,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/*.cpp" % 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 = "26Oct10",
|
||||
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]
|
||||
)
|
||||
Reference in New Issue
Block a user