Commit 2be8a41f authored by tarek's avatar tarek

fixed import test

--HG--
branch : distribute
extra : rebase_source : a007e84b35812190d3cb622d372b48c96634fc08
parent b0f0ee68
......@@ -23,8 +23,22 @@ else:
os.spawnv(os.P_WAIT, sys.executable, args)
# now checking if Distribute is installed
script = """\
import sys
try:
import setuptools
except ImportError:
sys.exit(0)
sys.exit(hasattr(setuptools, "_distribute"))
"""
f = open('script.py', 'w')
f.write(script)
f.close()
args = [sys.executable] + ['script.py']
args = [sys.executable] + ['-c', 'import setuptools; import sys; sys.exit(hasattr(setuptools, "_distribute"))']
if is_jython:
res = subprocess.call([sys.executable] + args)
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment