瀏覽代碼

setup.py: Make sure the setuptools_available variable is set

Otherwise it would crash if it can't import setuptools.
Jaime Marquínez Ferrándiz 12 年之前
父節點
當前提交
369a759acc
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      setup.py

+ 1 - 0
setup.py

@@ -11,6 +11,7 @@ try:
     setuptools_available = True
     setuptools_available = True
 except ImportError:
 except ImportError:
     from distutils.core import setup
     from distutils.core import setup
+    setuptools_available = False
 
 
 try:
 try:
     # This will create an exe that needs Microsoft Visual C++ 2008
     # This will create an exe that needs Microsoft Visual C++ 2008