2007-09-12 23:48:45 +00:00
|
|
|
#! /usr/bin/python
|
|
|
|
|
|
|
|
import os.path, sys
|
|
|
|
|
|
|
|
path = []
|
2007-09-14 01:20:35 +00:00
|
|
|
if sys.platform == 'win32':
|
|
|
|
support_lib = "support/Lib/site-packages"
|
|
|
|
else:
|
|
|
|
pyver = "python%d.%d" % (sys.version_info[:2])
|
|
|
|
support_lib = "support/lib/%s/site-packages" % pyver
|
|
|
|
|
2007-09-12 23:48:45 +00:00
|
|
|
if os.path.exists(support_lib):
|
|
|
|
for fn in os.listdir(support_lib):
|
|
|
|
if fn.endswith(".egg"):
|
|
|
|
path.append(os.path.abspath(os.path.join(support_lib, fn)))
|
|
|
|
|
2008-01-01 08:53:31 +00:00
|
|
|
# We also need to include .egg's in the CWD, because if there is an .egg there
|
|
|
|
# then "make build-deps" will take that as satisfying its requirements.
|
|
|
|
for fn in os.listdir("."):
|
|
|
|
if fn.endswith(".egg"):
|
|
|
|
path.append(os.path.abspath(os.path.join(os.getcwd(), fn)))
|
|
|
|
|
2007-09-14 01:20:35 +00:00
|
|
|
print os.pathsep.join(path)
|