Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TestSetupPyInterpreter.test_setuptools_version #5988

Merged
merged 1 commit into from
Jun 20, 2018
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from twitter.common.dirutil.chroot import Chroot

from pants.backend.python.subsystems.python_setup import PythonSetup
from pants.backend.python.tasks.select_interpreter import SelectInterpreter
from pants.backend.python.tasks.setup_py import SetupPy
from pants.base.exceptions import TaskError
from pants.build_graph.build_file_aliases import BuildFileAliases
Expand Down Expand Up @@ -43,7 +44,9 @@ def setUp(self):
@contextmanager
def run_execute(self, target, recursive=False):
self.set_options(recursive=recursive)
context = self.context(target_roots=[target])
si_task_type = self.synthesize_task_subtype(SelectInterpreter, 'si_scope')
context = self.context(for_task_types=[si_task_type], target_roots=[target])
si_task_type(context, os.path.join(self.pants_workdir, 'si')).execute()
setup_py = self.create_task(context)
setup_py.execute()
yield context.products.get_data(SetupPy.PYTHON_DISTS_PRODUCT)
Expand Down