forked from luca-fiorito-11/sandy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·51 lines (47 loc) · 1.46 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from setuptools import find_packages
from numpy.distutils.core import setup, Extension
import os
import sys
import logging
__author__ = "Luca Fiorito"
extensions = [
Extension(name='rwf',
sources=[os.path.join(*['fortran', 'rwfortran.f'])]
),
]
keywords = ['uncertainty', 'nuclear data', 'covariance', 'sampling', 'ENDF-6']
requirements = "requirements.txt"
setup(
name='sandy',
version='0.1',
description='SANDY: sampling of nuclear data and uncertainty',
url='https://github.com/luca-fiorito-11/sandy',
author='Luca Fiorito',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3',
],
keywords=", ".join(keywords),
# packages = find_packages(),
data_files=[(x[0], list(map(lambda y: x[0]+'/'+y, x[2]))) for x in os.walk('sandy')],
install_requires=open(requirements).read().splitlines(),
zip_safe=False,
# setup_requires=["pytest-runner",],
tests_require=[
"pytest",
],
include_package_data=True,
ext_modules=extensions,
entry_points={
'console_scripts': [
'sandy=sandy.sampling:run',
],
},
)
#import sandy
#
#try:
# sandy.get_njoy()
#except sandy.SandyError:
# logging.warning("env variable 'NJOY' is not assigned. SANDY might not behave as expected.")