Permalink
Browse files

Try setuptools first, then fallback to distutils.core

  • Loading branch information...
1 parent ec71c13 commit a32b573ccb71de6d50cdb4dcf8e44928c70f92a6 @dcoppa dcoppa committed Jan 30, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 setup.py
View
6 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:

0 comments on commit a32b573

Please sign in to comment.