diff --git a/appveyor.yml b/appveyor.yml index 5bfaa0d95..adf7ba60d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -8,6 +8,7 @@ environment: global: PIP_CACHE_DIR: "pip_cache" + PIP_DISABLE_PIP_VERSION_CHECK: "yes" matrix: - PYTHON: "C:\\Miniconda-x64" diff --git a/cobra/test/test_solver_model.py b/cobra/test/test_solver_model.py index c36a82d84..7d792ada5 100644 --- a/cobra/test/test_solver_model.py +++ b/cobra/test/test_solver_model.py @@ -467,12 +467,12 @@ def test_reaction_imul(self, model): with model: model.reactions.EX_glc__D_e *= 100 assert model.constraints.glc__D_e.expression.coeff( - model.variables.EX_glc__D_e) == -100 + model.variables.EX_glc__D_e) == -100.0 assert model.reactions.EX_glc__D_e.reaction == \ '100.0 glc__D_e <=> ' assert model.constraints.glc__D_e.expression.coeff( - model.variables.EX_glc__D_e) == -1 + model.variables.EX_glc__D_e) == -1.0 assert model.reactions.EX_glc__D_e.reaction == 'glc__D_e <=> ' with model: diff --git a/cobra/util/version_info.py b/cobra/util/version_info.py index 1a7b966ff..6b54cc33d 100644 --- a/cobra/util/version_info.py +++ b/cobra/util/version_info.py @@ -10,7 +10,7 @@ import platform -import pip +import pkg_resources __all__ = ("show_versions",) @@ -55,7 +55,7 @@ def get_pkg_info(): # using requirements files that can be read in. dependencies = frozenset(PKG_ORDER) blob = dict() - for dist in pip.get_installed_distributions(): + for dist in pkg_resources.working_set: if dist.project_name in dependencies: blob[dist.project_name] = dist.version return blob