setup.py
changeset 31289 718a57e95a89
parent 30907 75149f84eac7
child 31308 62939e0148f1
equal deleted inserted replaced
31288:198cd5ad9db8 31289:718a57e95a89
    61 import os, stat, subprocess, time
    61 import os, stat, subprocess, time
    62 import re
    62 import re
    63 import shutil
    63 import shutil
    64 import tempfile
    64 import tempfile
    65 from distutils import log
    65 from distutils import log
    66 if 'FORCE_SETUPTOOLS' in os.environ:
    66 # We have issues with setuptools on some platforms and builders. Until
       
    67 # those are resolved, setuptools is opt-in except for platforms where
       
    68 # we don't have issues.
       
    69 if os.name == 'nt' or 'FORCE_SETUPTOOLS' in os.environ:
    67     from setuptools import setup
    70     from setuptools import setup
    68 else:
    71 else:
    69     from distutils.core import setup
    72     from distutils.core import setup
    70 from distutils.ccompiler import new_compiler
    73 from distutils.ccompiler import new_compiler
    71 from distutils.core import Command, Extension
    74 from distutils.core import Command, Extension