Skip to content

Commit

Permalink
fix: restore proper AppVeyor builds (#697)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdiener authored and Midnighter committed Apr 24, 2018
1 parent 542b0e8 commit aeee5a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
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

0 comments on commit aeee5a0

Please sign in to comment.