phonopy/setup3.py

22 lines
664 B
Python
Raw Normal View History

2012-12-11 16:19:23 +08:00
from distutils.core import setup, Extension
#from setuptools import setup, Extension
import numpy
include_dirs_numpy = [numpy.get_include()]
extension = Extension('anharmonic._phono3py',
include_dirs = ['c'] + include_dirs_numpy,
extra_compile_args=['-fopenmp'],
extra_link_args=['-lgomp'],
sources = ['c/_phono3py.c'])
setup(name = 'phono3py',
version = '0.1.0',
description = 'This is the phono3py module.',
author = 'Atsushi Togo',
author_email = 'atz.togo@gmail.com',
url = 'http://phonopy.sourceforge.net/',
packages = ['anharmonic'],
scripts = ['scripts/phono3py'],
ext_modules = [extension]
)