diff --git a/__init__.py b/__init__.py index 68a6a36..f161b4e 100644 --- a/__init__.py +++ b/__init__.py @@ -1,7 +1,4 @@ - - - # pyeq3 is a collection of equations expressed as Python classes # # Copyright (C) 2013 James R. Phillips @@ -12,6 +9,11 @@ # # License: BSD-style (see LICENSE.txt in main source directory) +import sys +ver = sys.version_info[0] +if ver < 3: + raise Exception('Python 3 is required to use pyeq3') + from . import DataCache from . import Services from . import ExtendedVersionHandlers @@ -22,4 +24,4 @@ dataConvertorService = Services.DataConverterService.DataConverterService solverService = Services.SolverService.SolverService outputSourceCodeService = Services.OutputSourceCodeService.OutputSourceCodeService -dataCache = DataCache.DataCache.DataCache \ No newline at end of file +dataCache = DataCache.DataCache.DataCache