Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ environment:

global:
PIP_CACHE_DIR: "pip_cache"
PIP_DISABLE_PIP_VERSION_CHECK: "yes"

matrix:
- PYTHON: "C:\\Miniconda-x64"
Expand Down
4 changes: 2 additions & 2 deletions cobra/test/test_solver_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions cobra/util/version_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import platform

import pip
import pkg_resources

__all__ = ("show_versions",)

Expand Down Expand Up @@ -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
Expand Down