Index: wflow-py/setup.py =================================================================== diff -u -r9c33accc4863cd353267f08290367eded8705ea0 -r6b3a30452491a891b2eaa8bf54b78eb6b0e19f80 --- wflow-py/setup.py (.../setup.py) (revision 9c33accc4863cd353267f08290367eded8705ea0) +++ wflow-py/setup.py (.../setup.py) (revision 6b3a30452491a891b2eaa8bf54b78eb6b0e19f80) @@ -11,12 +11,12 @@ README = open(os.path.join(here, '../README.rst')).read() TODO = open(os.path.join(here, 'TODO.txt')).read() -requires = [ - 'netCDF4', - 'numpy', - 'matplotlib', - 'pcraster', 'osgeo'] +try: + import pcraster +except: + print("Could not import pcraster, make sure it is installed including the python extensions") + print("see www.pcraster.eu") #setup(**config) @@ -38,5 +38,9 @@ 'wflow/wflow_sbm.py','wflow/wflow_hbv.py','wflow/wflow_W3RA.py', 'wflow/wflow_upscale.py','wflow/wflow_routing.py'], description='the wflow hydrological models (part of OpenStreams)', + install_requires = [ 'netCDF4>=1.1.8', + 'numpy', + 'matplotlib', + 'gdal'], )