[pypy-svn] pypy default: Put the temporary 'externmod_%d.so' in udir.
arigo
commits-noreply at bitbucket.org
Mon Feb 14 13:55:54 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r41898:d34da489e896
Date: 2011-02-14 13:55 +0100
http://bitbucket.org/pypy/pypy/changeset/d34da489e896/
Log: Put the temporary 'externmod_%d.so' in udir.
diff --git a/pypy/translator/tool/cbuild.py b/pypy/translator/tool/cbuild.py
--- a/pypy/translator/tool/cbuild.py
+++ b/pypy/translator/tool/cbuild.py
@@ -276,7 +276,8 @@
return self
basepath = udir.join('module_cache')
else:
- basepath = py.path.local(self.separate_module_files[0]).dirpath()
+ #basepath = py.path.local(self.separate_module_files[0]).dirpath()
+ basepath = udir.join('shared_cache')
if outputfilename is None:
# find more or less unique name there
pth = basepath.join('externmod').new(ext=host.so_ext)
@@ -285,7 +286,8 @@
pth = basepath.join(
'externmod_%d' % (num,)).new(ext=host.so_ext)
num += 1
- outputfilename=pth.purebasename
+ basepath.ensure(dir=1)
+ outputfilename = str(pth.dirpath().join(pth.purebasename))
lib = str(host.compile([], self, outputfilename=outputfilename,
standalone=False))
d = self._copy_attributes()
More information about the Pypy-commit
mailing list