[svn r38808] trying to be more ignorant about missing abilities
to remove c-extension modules (they might be in site-packages) and adding a hack to make sure that the greenlet module gets build ahead of the setup install. --HG-- branch : trunk
This commit is contained in:
parent
d02d937b74
commit
86155cceb8
|
@ -135,6 +135,12 @@ def set_registry_value(reg, key, value_name, value):
|
|||
def setup(pkg, **kw):
|
||||
""" invoke distutils on a given package.
|
||||
"""
|
||||
print "precompiling greenlet module"
|
||||
try:
|
||||
x = py.magic.greenlet()
|
||||
except ImportError:
|
||||
print "could not precompile greenlet module, skipping"
|
||||
|
||||
params = Params(pkg)
|
||||
#dump(params)
|
||||
source = getattr(pkg, '__package__', pkg)
|
||||
|
|
|
@ -31,10 +31,14 @@ def make_module_from_c(cfile):
|
|||
raise ImportError, "cannot find the file name suffix of C ext modules"
|
||||
lib = dirpath.join(modname+ext)
|
||||
|
||||
# argl! we need better "build"-locations alltogether!
|
||||
# XXX argl! we need better "build"-locations alltogether!
|
||||
if lib.check():
|
||||
try:
|
||||
lib.remove()
|
||||
except EnvironmentError:
|
||||
pass # XXX we just use the existing version, bah
|
||||
|
||||
if not lib.check():
|
||||
c = py.io.StdCaptureFD()
|
||||
try:
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue