提交 276372d3 authored 作者: David Warde-Farley's avatar David Warde-Farley

Only use distribute_setup if there's no setuptools module available.

上级 5c1c293d
...@@ -24,3 +24,5 @@ pull.sh ...@@ -24,3 +24,5 @@ pull.sh
setuptools-*.egg setuptools-*.egg
theano/version.py theano/version.py
theano/version.py.out theano/version.py.out
distribute-*.egg
distribute-*.tar.gz
...@@ -3,8 +3,15 @@ ...@@ -3,8 +3,15 @@
# TODO: # TODO:
# * Figure out how to compile and install documentation automatically # * Figure out how to compile and install documentation automatically
# * Add download_url # * Add download_url
import distribute_setup
distribute_setup.use_setuptools() # Detect whether or not the user has setuptools and use the bundled
# distribute_setup.py bootstrap module if they don't.
try:
import setuptools
except ImportError:
import distribute_setup
distribute_setup.use_setuptools()
import os import os
import subprocess import subprocess
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论