diff --git a/api_compatibility.py b/api_compatibility.py index 402a275..61fbd5b 100644 --- a/api_compatibility.py +++ b/api_compatibility.py @@ -10,6 +10,7 @@ CompatibleTable['0.2.0'] = {'target': '2.0.0', 'backward': '2.0.0'} CompatibleTable['0.2.1'] = {'target': '2.0.1', 'backward': '2.0.0'} CompatibleTable['0.2.2'] = {'target': '2.0.1', 'backward': '2.0.0'} +CompatibleTable['0.2.3'] = {'target': '2.0.2', 'backward': '2.0.0'} def compare_version(x, y): diff --git a/kimpy/__init__.py b/kimpy/__init__.py index 5bcd704..9c3004d 100644 --- a/kimpy/__init__.py +++ b/kimpy/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.2.2' +__version__ = '0.2.3' # import all modules from . import model diff --git a/kimpy/simulator_models.py b/kimpy/simulator_models.py index 5620414..463a10e 100644 --- a/kimpy/simulator_models.py +++ b/kimpy/simulator_models.py @@ -415,12 +415,12 @@ def get_kim_api_simulator_model_utility(): ''' try: libexec_path = subprocess.check_output( - ["pkg-config", "--variable=libexecdir", "libkim-api-v2"], + ["pkg-config", "--variable=libexecdir", "libkim-api"], universal_newlines=True).strip().rstrip("/") except: raise KIMSMError( 'ERROR: Unable to obtain libexec-path from KIM API utility.') - return os.path.join(libexec_path, "kim-api-v2", "kim-api-v2-simulator-model") + return os.path.join(libexec_path, "kim-api", "kim-api-simulator-model") def is_simulator_model(model): diff --git a/setup.py b/setup.py index 0ac4740..59bab22 100644 --- a/setup.py +++ b/setup.py @@ -22,12 +22,12 @@ def inquire_kim_api(key): """ Get compile and link flags of kim-api.""" try: - config = subprocess.check_output(['pkg-config', key, 'libkim-api-v2'], + config = subprocess.check_output(['pkg-config', key, 'libkim-api'], universal_newlines=True) except: - raise Exception('"libkim-api-v2" not found. Make sure "kim-api-v2" is ' + raise Exception('"libkim-api" not found. Make sure "kim-api" is ' 'installed and do not forget to ' - '"source path/to/kim-api-v2-activate".') + '"source path/to/kim-api-activate".') split_config = [s for s in config.strip().split(' ')]