quiet setup.py warning about install_requires
This commit is contained in:
parent
529e9aaaff
commit
2f6bd8de37
5
setup.py
5
setup.py
@ -37,6 +37,11 @@ setupOpts = dict(
|
||||
from distutils.core import setup
|
||||
import distutils.dir_util
|
||||
import os, sys, re
|
||||
try:
|
||||
# just avoids warning about install_requires
|
||||
import setuptools
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
path = os.path.split(__file__)[0]
|
||||
sys.path.insert(0, os.path.join(path, 'tools'))
|
||||
|
@ -2,6 +2,7 @@ import os, sys, re
|
||||
try:
|
||||
from subprocess import check_output
|
||||
except ImportError:
|
||||
print "fake check_output"
|
||||
import subprocess as sp
|
||||
def check_output(*args, **kwds):
|
||||
kwds['stdout'] = sp.PIPE
|
||||
|
Loading…
Reference in New Issue
Block a user