forked from abelcarreras/phonolammps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
28 lines (25 loc) · 904 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
28
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',
long_description=open('README.md').read(),
author='Abel Carreras',
url='https://github.com/abelcarreras/phonolammps',
author_email='[email protected]',
packages=['phonolammps'],
scripts=['scripts/phonolammps'],
install_requires=['phonopy', 'numpy', 'matplotlib', 'seekpath', 'dynaphopy'],
license='MIT License'
)