aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorDavid Coppa <dcoppa@gmail.com>2013-01-30 15:31:38 +0100
committerDavid Coppa <dcoppa@gmail.com>2013-01-30 15:31:38 +0100
commita32b573ccb71de6d50cdb4dcf8e44928c70f92a6 (patch)
tree65a34838a1b7b7d6ec45e55ecb39aca2ac331f65 /setup.py
parentec71c13ab891566abff9010710afb915e8f22523 (diff)
Try setuptools first, then fallback to distutils.core
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 6d019dcbb..eb7b1a212 100644
--- a/setup.py
+++ b/setup.py
@@ -2,11 +2,15 @@
# -*- 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"""
except ImportError: