diff --git a/setup.py b/setup.py index fa2320fe8..7f10422bf 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ for i in range(len(sys.argv)): pp.append(libdir) os.environ['PYTHONPATH'] = os.pathsep.join(pp) - if arg.startswith("develop"): + if arg.startswith("develop") or arg.startswith("build") or arg.startswith("test"): # argh! horrible kludge to workaround setuptools #17 if sys.platform == "linux2": # workaround for tahoe #229 / setuptools #17, on debian sys.argv.extend(["--site-dirs", "/var/lib/python-support/python%d.%d" % (sys.version_info[:2])])