setup.py
branchstable
changeset 50733 b1ac55606eb7
parent 50643 cbcbf63b6dbf
child 50761 2c34c9b61a4f
child 50930 5dc7e1907e48
equal deleted inserted replaced
50732:b3a5af04da35 50733:b1ac55606eb7
   110 # we don't have issues.
   110 # we don't have issues.
   111 issetuptools = os.name == 'nt' or 'FORCE_SETUPTOOLS' in os.environ
   111 issetuptools = os.name == 'nt' or 'FORCE_SETUPTOOLS' in os.environ
   112 if issetuptools:
   112 if issetuptools:
   113     from setuptools import setup
   113     from setuptools import setup
   114 else:
   114 else:
   115     from distutils.core import setup
   115     try:
       
   116         from distutils.core import setup
       
   117     except ModuleNotFoundError:
       
   118         from setuptools import setup
   116 from distutils.ccompiler import new_compiler
   119 from distutils.ccompiler import new_compiler
   117 from distutils.core import Command, Extension
   120 from distutils.core import Command, Extension
   118 from distutils.dist import Distribution
   121 from distutils.dist import Distribution
   119 from distutils.command.build import build
   122 from distutils.command.build import build
   120 from distutils.command.build_ext import build_ext
   123 from distutils.command.build_ext import build_ext