Skip to content

Commit aeee5a0

Browse files
cdienerMidnighter
authored andcommitted
fix: restore proper AppVeyor builds (#697)
1 parent 542b0e8 commit aeee5a0

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

appveyor.yml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ environment:
88

99
global:
1010
PIP_CACHE_DIR: "pip_cache"
11+
PIP_DISABLE_PIP_VERSION_CHECK: "yes"
1112

1213
matrix:
1314
- PYTHON: "C:\\Miniconda-x64"

cobra/test/test_solver_model.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -467,12 +467,12 @@ def test_reaction_imul(self, model):
467467
with model:
468468
model.reactions.EX_glc__D_e *= 100
469469
assert model.constraints.glc__D_e.expression.coeff(
470-
model.variables.EX_glc__D_e) == -100
470+
model.variables.EX_glc__D_e) == -100.0
471471
assert model.reactions.EX_glc__D_e.reaction == \
472472
'100.0 glc__D_e <=> '
473473

474474
assert model.constraints.glc__D_e.expression.coeff(
475-
model.variables.EX_glc__D_e) == -1
475+
model.variables.EX_glc__D_e) == -1.0
476476
assert model.reactions.EX_glc__D_e.reaction == 'glc__D_e <=> '
477477

478478
with model:

cobra/util/version_info.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import platform
1212

13-
import pip
13+
import pkg_resources
1414

1515
__all__ = ("show_versions",)
1616

@@ -55,7 +55,7 @@ def get_pkg_info():
5555
# using requirements files that can be read in.
5656
dependencies = frozenset(PKG_ORDER)
5757
blob = dict()
58-
for dist in pip.get_installed_distributions():
58+
for dist in pkg_resources.working_set:
5959
if dist.project_name in dependencies:
6060
blob[dist.project_name] = dist.version
6161
return blob

0 commit comments

Comments
 (0)