[RFC] _chunks_to_lines_pyx rebuild problem

Alexander Belchenko bialix at ukr.net
Thu May 28 12:32:07 BST 2009


C extension _chunk_to_lines_pyx is imported by osutils.py. This import 
effectively preventing to delete compiled extension while all extensions 
rebuilding on Windows, because osutils is used by setup.py.

This is pain in the ass for me, when I need to rebuild extensions during 
`make exe` process. I'd like to get rid of this situation. Currently I 
have to remove this dll manually before running rebuild.

Is it possible to move it's import to another module or make it lazy?
Please?


pyrexc bzrlib/_chunks_to_lines_pyx.pyx --> bzrlib/_chunks_to_lines_pyx.c
building 'bzrlib._chunks_to_lines_pyx' extension
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c 
/nologo /Ox /MD /W3 /GX /DNDEBUG -DWIN32 -IC:\Python25\incl
ude -IC:\Python25\PC /Tcbzrlib/_chunks_to_lines_pyx.c 
/Fobuild\temp.win32-2.5\Release\bzrlib/_chunks_to_lines_pyx.obj
_chunks_to_lines_pyx.c
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL 
/nologo /INCREMENTAL:NO /LIBPATH:C:\Python25\libs /LIBP
ATH:C:\Python25\PCBuild /EXPORT:init_chunks_to_lines_pyx 
build\temp.win32-2.5\Release\bzrlib/_chunks_to_lines_pyx.obj /OUT:bzrli
b\_chunks_to_lines_pyx.pyd 
/IMPLIB:build\temp.win32-2.5\Release\bzrlib\_chunks_to_lines_pyx.lib
LINK : fatal error LNK1104: cannot open file 
'bzrlib\_chunks_to_lines_pyx.pyd'

   Cannot build extension "bzrlib._chunks_to_lines_pyx".
   Use "build_ext --allow-python-fallback" to use slower python 
implementations instead.

error: command '"c:\Program Files\Microsoft Visual Studio .NET 
2003\Vc7\bin\link.exe"' failed with exit status 1104




More information about the bazaar mailing list