diff --git a/contrib/jax_ws/src/python/pants/contrib/jax_ws/tasks/jax_ws_gen.py b/contrib/jax_ws/src/python/pants/contrib/jax_ws/tasks/jax_ws_gen.py index bc945eeb81e..d38ac069a4e 100644 --- a/contrib/jax_ws/src/python/pants/contrib/jax_ws/tasks/jax_ws_gen.py +++ b/contrib/jax_ws/src/python/pants/contrib/jax_ws/tasks/jax_ws_gen.py @@ -18,7 +18,6 @@ from pants.contrib.jax_ws.targets.jax_ws_library import JaxWsLibrary - logger = logging.getLogger(__name__) diff --git a/src/python/pants/backend/python/tasks2/python_distribution_create.py b/src/python/pants/backend/python/tasks2/python_distribution_create.py deleted file mode 100644 index 1919060e550..00000000000 --- a/src/python/pants/backend/python/tasks2/python_distribution_create.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). -# Licensed under the Apache License, Version 2.0 (see LICENSE). - -from __future__ import (absolute_import, division, generators, nested_scopes, print_function, - unicode_literals, with_statement) - - -class PythonDistributionCreate(Task): - """Create a Python distribution containing .py and .c/.cpp sources""" - - @staticmethod - def is_distribution(target): - return isinstance(target, PythonDistribution) - - def __init__(self, *args, **kwargs): - super(PythonDistributionCreate, self).__init__(*args, **kwargs) - self._distdir = self.get_options().pants_distdir - - def execute(self): - distributions = self.context.targets(self.is_distribution) - - # Check for duplicate distribution names, since we write the pexes to /.pex. - names = {} - for distribution in distributions: - name = distribution.name - if name in names: - raise TaskError('Cannot build two distributions with the same name in a single invocation. ' - '{} and {} both have the name {}.'.format(distribution, names[name], name)) - names[name] = distribution - - with self.invalidated(distributions, invalidate_dependents=True) as invalidation_check: - for vt in invalidation_check.all_vts: - pex_path = os.path.join(vt.results_dir, '{}.pex'.format(vt.target.name)) - if not vt.valid: - self.context.log.debug('cache for {} is invalid, rebuilding'.format(vt.target)) - self._create_distribution(vt.target, vt.results_dir) - else: - self.context.log.debug('using cache for {}'.format(vt.target)) - - def _create_distribution(self, source_dir, results_dir, setup_file): - """Create a .pex file containing an inline wheel for the specified folder and setup.py.""" - pass