diff --git a/src/python/pants/backend/python/register.py b/src/python/pants/backend/python/register.py index d546f55f960..0e051af2630 100644 --- a/src/python/pants/backend/python/register.py +++ b/src/python/pants/backend/python/register.py @@ -45,7 +45,6 @@ def build_file_aliases(): PythonBinary.alias(): PythonBinary, PythonLibrary.alias(): PythonLibrary, PythonTests.alias(): PythonTests, - PythonDistribution.alias(): TargetMacro.Factory.wrap(PythonDistribution.create, PythonDistribution), 'python_dist': PythonDistribution, 'python_requirement_library': PythonRequirementLibrary, Resources.alias(): Resources, diff --git a/src/python/pants/backend/python/targets/python_distribution.py b/src/python/pants/backend/python/targets/python_distribution.py index 86f0cfd0efb..9b4ae13787f 100644 --- a/src/python/pants/backend/python/targets/python_distribution.py +++ b/src/python/pants/backend/python/targets/python_distribution.py @@ -21,6 +21,10 @@ class PythonDistribution(Target): default_sources_globs = '*.py' + @classmethod + def alias(cls): + return 'python_dist' + def __init__(self, address=None, payload=None, @@ -64,8 +68,3 @@ def __init__(self, PythonIdentity.parse_requirement(req) except ValueError as e: raise TargetDefinitionException(self, str(e)) - - @classmethod - def get_alias(cls): - return 'python_dist' - diff --git a/src/python/pants/backend/python/tasks2/python_create_distributions.py b/src/python/pants/backend/python/tasks2/python_create_distributions.py index fd74f8da09c..fb411c33e1d 100644 --- a/src/python/pants/backend/python/tasks2/python_create_distributions.py +++ b/src/python/pants/backend/python/tasks2/python_create_distributions.py @@ -63,7 +63,7 @@ def execute(self): with self.invalidated(dist_targets, invalidate_dependents=True) as invalidation_check: for vt in invalidation_check.all_vts: - built_dists.add(self._create_dist(vt.target)) # vt.results dir + built_dists.add(self._create_dist(vt.target)) self.context.products.register_data('python-dists', built_dists)