Don't import qpms_p in __init__, remove scipy from install dependencies

This commit is contained in:
Marek Nečada 2022-06-07 06:07:08 +03:00
parent 1aac5de903
commit 3a34effe34
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ from .cymaterials import MaterialInterpolator, EpsMu, LorentzDrudeModel, lorentz
from .cycommon import dbgmsg_enable, dbgmsg_disable, dbgmsg_active, BesselType, VSWFType from .cycommon import dbgmsg_enable, dbgmsg_disable, dbgmsg_active, BesselType, VSWFType
from .cywaves import vswf_single from .cywaves import vswf_single
from .qpms_p import * # maybe don't import automatically in the future (adds around 0.5 s delay) #from .qpms_p import * # don't import automatically (adds around 0.5 s delay and depends on scipy)
from .constants import * from .constants import *
# legacy code which brutally slows down the whole package init: # legacy code which brutally slows down the whole package init:

View File

@ -161,7 +161,7 @@ setup(name='qpms',
setup_requires=['cython>=0.28','numpy>=1.2','setuptools>=18.0'], setup_requires=['cython>=0.28','numpy>=1.2','setuptools>=18.0'],
install_requires=['cython>=0.28', install_requires=['cython>=0.28',
#'quaternion','spherical_functions', #'quaternion','spherical_functions',
'scipy>=0.18.0', 'sympy>=1.2', 'numpy>=1.2'], 'sympy>=1.2', 'numpy>=1.2'],
#dependency_links=['https://github.com/moble/quaternion/archive/v2.0.tar.gz','https://github.com/moble/spherical_functions/archive/master.zip'], #dependency_links=['https://github.com/moble/quaternion/archive/v2.0.tar.gz','https://github.com/moble/spherical_functions/archive/master.zip'],
ext_modules=cythonize([qpms_c, cywaves, cytranslations, cytmatrices, cycommon, cyquaternions, cybspec, cymaterials, cyewaldtest], include_path=['qpms', 'amos'], gdb_debug=True), ext_modules=cythonize([qpms_c, cywaves, cytranslations, cytmatrices, cycommon, cyquaternions, cybspec, cymaterials, cyewaldtest], include_path=['qpms', 'amos'], gdb_debug=True),
cmdclass = {'build_ext': build_ext}, cmdclass = {'build_ext': build_ext},