mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Expand setup.py to include required and optional dependencies
This commit is contained in:
parent
e95a53864a
commit
a8a98f0aa6
1 changed files with 26 additions and 4 deletions
30
setup.py
30
setup.py
|
|
@ -1,13 +1,35 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import glob
|
||||
import os
|
||||
from distutils.core import setup
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
setup(name='openmc',
|
||||
version='0.6.2',
|
||||
description='OpenMC Python API',
|
||||
packages=find_packages(),
|
||||
scripts=glob.glob('scripts/openmc-*'),
|
||||
|
||||
# Required dependencies
|
||||
install_requires=['numpy', 'scipy', 'h5py', 'matplotlib'],
|
||||
|
||||
# Optional dependencies
|
||||
extras_require={
|
||||
'vtk': ['vtk', 'silomesh'],
|
||||
'validate': ['lxml'],
|
||||
},
|
||||
|
||||
# Metadata
|
||||
author='Will Boyd',
|
||||
author_email='wbinventor@gmail.com',
|
||||
description='OpenMC Python API',
|
||||
url='https://github.com/mit-crpg/openmc',
|
||||
packages=['openmc'],
|
||||
scripts=[os.path.join('scripts', f) for f in os.listdir('scripts')])
|
||||
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'
|
||||
]
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue