Skip to content
Snippets Groups Projects
Commit a16a53fc authored by Rasmus Sode Lund's avatar Rasmus Sode Lund :zap: Committed by Mads M. Pedersen
Browse files

Rsod simplify installation

parent f59665a5
No related branches found
No related tags found
1 merge request!213Rsod simplify installation
Pipeline #39960 passed
......@@ -32,26 +32,26 @@ from distutils.extension import Extension
def setup_package(build_ext_switch=True):
if build_ext_switch:
import numpy as np
ex_info = [('wetb.fatigue_tools.rainflowcounting', ['pair_range', 'peak_trough', 'rainflowcount_astm']),
('wetb.signal.filters', ['cy_filters'])]
extlist = [Extension('%s.%s' % (module, n),
[os.path.join(module.replace(".", "/"), n) + '.pyx'],
include_dirs=[np.get_include()]) for module, names in ex_info for n in names]
from Cython.Distutils import build_ext
build_requires = ['cython']
cmd_class = {'build_ext': build_ext}
else:
extlist = []
build_requires = []
cmd_class = {}
# if build_ext_switch:
# import numpy as np
# ex_info = [('wetb.fatigue_tools.rainflowcounting', ['pair_range', 'peak_trough', 'rainflowcount_astm']),
# ('wetb.signal.filters', ['cy_filters'])]
# extlist = [Extension('%s.%s' % (module, n),
# [os.path.join(module.replace(".", "/"), n) + '.pyx'],
# include_dirs=[np.get_include()]) for module, names in ex_info for n in names]
# from Cython.Distutils import build_ext
# build_requires = ['cython']
# cmd_class = {'build_ext': build_ext}
# else:
extlist = []
build_requires = []
cmd_class = {}
needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv)
sphinx = ['sphinx'] if needs_sphinx else []
install_requires = ['mock',
'h5py',
'tables',
#'tables', # Has blosc2 as requirement, fails unless C compiler is present on win32
'pytest',
'pytest-cov',
# 'blosc', # gives an error - has to be pre-installed
......@@ -60,7 +60,6 @@ def setup_package(build_ext_switch=True):
'scipy',
'pandas',
'matplotlib',
'cython',
'coverage',
'xlwt',
'openpyxl',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment