atmos-python / atmos

An atmospheric sciences library for Python
MIT License
64 stars 21 forks source link

make unit handling dependencies optional #2

Open mcgibbon opened 9 years ago

mcgibbon commented 9 years ago

The dependency of atmos on cfunits can be removed by checking whether cfunits can be imported, and if it cannot, disabling unit handling functionality.

This would entail, in solve.py:

And also:

The purpose of this is to make installation easier for users that don't have udunits installed on their system to install atmos. But am I right in thinking that cfunits depends on having a system-installed udunits library available? And is there another package on pypi that would install udunits in some sort of wrapper, without needing a system installation of udunits?