forked from abelcarreras/phonolammps
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
27 lines (24 loc) · 808 Bytes
/
setup.py
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
try:
from setuptools import setup, Extension
use_setuptools = True
print("setuptools is used.")
except ImportError:
from distutils.core import setup, Extension
use_setuptools = False
print("distutils is used.")
def get_version_number():
for l in open('phonolammps/__init__.py', 'r').readlines():
if not(l.find('__version__')):
exec(l, globals())
return __version__
setup(name='phonoLAMMPS',
version=get_version_number(),
description='phonoLAMMPS module',
author='Abel Carreras',
url='https://github.com/abelcarreras/phonolammps',
author_email='[email protected]',
packages=['phonolammps'],
scripts=['scripts/phonolammps'],
requires=['phonopy', 'numpy'],
license='MIT License'
)