From: David Coppa Date: Wed, 30 Jan 2013 14:31:38 +0000 (+0100) Subject: Try setuptools first, then fallback to distutils.core X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=a32b573ccb71de6d50cdb4dcf8e44928c70f92a6;p=youtube-dl Try setuptools first, then fallback to distutils.core --- 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"""