From a32b573ccb71de6d50cdb4dcf8e44928c70f92a6 Mon Sep 17 00:00:00 2001 From: David Coppa Date: Wed, 30 Jan 2013 15:31:38 +0100 Subject: [PATCH] Try setuptools first, then fallback to distutils.core --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6d019dcbb..eb7b1a212 100644 --- a/setup.py +++ b/setup.py @@ -2,10 +2,14 @@ # -*- coding: utf-8 -*- from __future__ import print_function -from distutils.core import setup import pkg_resources import sys +try: + from setuptools import setup +except ImportError: + from distutils.core import setup + try: import py2exe """This will create an exe that needs Microsoft Visual C++ 2008 Redistributable Package""" -- 2.39.5