2014-01-20 19:58:59 -05:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
2015-05-23 11:16:12 +07:00
|
|
|
import glob
|
2015-05-22 13:43:29 +07:00
|
|
|
import os
|
2015-06-01 08:37:01 +07:00
|
|
|
try:
|
|
|
|
|
from setuptools import setup
|
|
|
|
|
have_setuptools = True
|
|
|
|
|
except ImportError:
|
|
|
|
|
from distutils.core import setup
|
|
|
|
|
have_setuptools = False
|
2014-01-20 19:58:59 -05:00
|
|
|
|
2015-06-01 08:37:01 +07:00
|
|
|
kwargs = {'name': 'openmc',
|
2015-10-30 08:13:20 -05:00
|
|
|
'version': '0.7.1',
|
2015-08-09 16:18:59 -07:00
|
|
|
'packages': ['openmc', 'openmc.mgxs'],
|
2015-06-01 08:37:01 +07:00
|
|
|
'scripts': glob.glob('scripts/openmc-*'),
|
2015-05-23 11:16:12 +07:00
|
|
|
|
2015-06-01 08:37:01 +07:00
|
|
|
# Metadata
|
|
|
|
|
'author': 'Will Boyd',
|
|
|
|
|
'author_email': 'wbinventor@gmail.com',
|
|
|
|
|
'description': 'OpenMC Python API',
|
|
|
|
|
'url': 'https://github.com/mit-crpg/openmc',
|
|
|
|
|
'classifiers': [
|
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
|
'Intended Audience :: End Users/Desktop',
|
|
|
|
|
'Intended Audience :: Science/Research',
|
|
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
|
|
'Natural Language :: English',
|
|
|
|
|
'Programming Language :: Python',
|
|
|
|
|
'Topic :: Scientific/Engineering'
|
|
|
|
|
]}
|
2015-05-23 11:16:12 +07:00
|
|
|
|
2015-06-01 08:37:01 +07:00
|
|
|
if have_setuptools:
|
|
|
|
|
kwargs.update({
|
|
|
|
|
# Required dependencies
|
2015-09-19 07:38:33 +07:00
|
|
|
'install_requires': ['numpy', 'h5py', 'matplotlib'],
|
2015-05-23 11:16:12 +07:00
|
|
|
|
2015-06-01 08:37:01 +07:00
|
|
|
# Optional dependencies
|
|
|
|
|
'extras_require': {
|
|
|
|
|
'pandas': ['pandas'],
|
|
|
|
|
'vtk': ['vtk', 'silomesh'],
|
|
|
|
|
'validate': ['lxml']
|
|
|
|
|
}})
|
|
|
|
|
|
|
|
|
|
setup(**kwargs)
|