Skip to content

Commit

Permalink
use pex get_platform() method over distutils
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Jul 6, 2018
1 parent 7c1bf0d commit 486d3ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/pants/backend/python/tasks/setup_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
unicode_literals, with_statement)

import ast
import distutils.util
import itertools
import os
import pprint
import shutil
from abc import abstractmethod
from collections import OrderedDict, defaultdict

import pex.pep425tags
from pex.compatibility import string, to_bytes
from pex.installer import InstallerBase, Packager
from pex.interpreter import PythonInterpreter
Expand Down Expand Up @@ -61,7 +61,7 @@ class SetupPyRunner(InstallerBase):

@classproperty
def _local_platform_tag(cls):
return distutils.util.get_platform().replace('-', '_').replace('.', '_')
return pex.pep425tags.get_platform().replace('-', '_').replace('.', '_')

# NB: "snapshot" refers to a "snapshot release", not a Snapshot.
@classmethod
Expand Down

0 comments on commit 486d3ee

Please sign in to comment.