Skip to content

Commit

Permalink
Disallow wheel during interpreter setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirois committed Oct 2, 2018
1 parent 9b0e635 commit fc82496
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from pex.environment import PEXEnvironment
from pex.installer import EggInstaller, WheelInstaller
from pex.interpreter import PythonInterpreter
from pex.package import SourcePackage, WheelPackage
from pex.package import SourcePackage, WheelPackage, EggPackage
from pex.pex import PEX
from pex.pex_builder import PEXBuilder
from pex.pex_info import PexInfo
Expand Down Expand Up @@ -129,6 +129,8 @@ def bad_interpreter(include_site_extras=True):
# successfully install psutil.
for dist in resolver.resolve([SETUPTOOLS_REQUIREMENT, WHEEL_REQUIREMENT],
cache=cache,
# We can't use wheels since we're bootstrapping them.
precedence=(SourcePackage, EggPackage),
interpreter=interpreter):
interpreter = interpreter.with_extra(dist.key, dist.version, dist.location)

Expand Down

0 comments on commit fc82496

Please sign in to comment.