Skip to content

Commit

Permalink
prefer setuptools to distutils.core
Browse files Browse the repository at this point in the history
  • Loading branch information
bugfood committed Jul 27, 2021
1 parent 84b8d75 commit a0efa4f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/fpm/package/pyfpm/get_metadata.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from distutils.core import Command
import os
import sys
import pkg_resources
Expand All @@ -7,6 +6,12 @@
except ImportError:
import simplejson as json

# distutils.core is to be deprecated in python 3.10 (PEP 632)
try:
from setuptools import Command
except ImportError:
from distutils.core import Command

PY3 = sys.version_info[0] == 3

if PY3:
Expand Down

0 comments on commit a0efa4f

Please sign in to comment.