comparison setup.py @ 26600:e8497889edab

setup: import setup from setuptools if FORCE_SETUPTOOLS is set This should allow easier experimentation with using setuptools in mercurial's build automation, without breaking anything that currently depends on distutils behavior
author Nathan Goldbaum <ngoldbau@ucsc.edu>
date Fri, 09 Oct 2015 12:25:51 -0500
parents 4b0fc75f9403
children 7309853eedae
comparison
equal deleted inserted replaced
26599:bdd7d9c7e626 26600:e8497889edab
68 import os, stat, subprocess, time 68 import os, stat, subprocess, time
69 import re 69 import re
70 import shutil 70 import shutil
71 import tempfile 71 import tempfile
72 from distutils import log 72 from distutils import log
73 from distutils.core import setup, Command, Extension 73 if 'FORCE_SETUPTOOLS' in os.environ:
74 from setuptools import setup
75 else:
76 from distutils.core import setup
77 from distutils.core import Command, Extension
74 from distutils.dist import Distribution 78 from distutils.dist import Distribution
75 from distutils.command.build import build 79 from distutils.command.build import build
76 from distutils.command.build_ext import build_ext 80 from distutils.command.build_ext import build_ext
77 from distutils.command.build_py import build_py 81 from distutils.command.build_py import build_py
78 from distutils.command.install_lib import install_lib 82 from distutils.command.install_lib import install_lib