[Python-Dev] make install failing with current cvs
Guido van Rossum
guido@python.org
Sun, 19 Jan 2003 20:31:35 -0500
> It is very difficult. site-packages is compiled as a side effect of
> compiling the entire lib directory, by means of recursive traversal.
> I don't think it is possible to turn of -tt at run time. It might be
> possible to exclude it from compilation altogether.
Would this work?
*** compileall.py 16 Jan 2003 11:02:43 -0000 1.14
--- compileall.py 20 Jan 2003 01:31:13 -0000
***************
*** 87,93 ****
Arguments (all optional):
! skip_curdir: if true, skip current directory (default true)
maxlevels: max recursion level (default 0)
force: as for compile_dir() (default 0)
quiet: as for compile_dir() (default 0)
--- 87,93 ----
Arguments (all optional):
! skip_curdir: if true, skip current directory and site-package (default true)
maxlevels: max recursion level (default 0)
force: as for compile_dir() (default 0)
quiet: as for compile_dir() (default 0)
***************
*** 97,102 ****
--- 97,104 ----
for dir in sys.path:
if (not dir or dir == os.curdir) and skip_curdir:
print 'Skipping current directory'
+ elif os.path.basename(dir).lower() == 'site-packages' and skip_curdir:
+ print 'Skipping site-packages'
else:
success = success and compile_dir(dir, maxlevels, None,
force, quiet=quiet)
--Guido van Rossum (home page: http://www.python.org/~guido/)