[BUG][0.90.0] './setup.py install' on systems without gcc didn't work for me
Lukáš Lalinský
lalinsky at gmail.com
Tue Sep 11 08:11:10 BST 2007
On Ut, 2007-09-11 at 09:38 +0300, Alexander Belchenko wrote:
> Marius Kruger пишет:
[...]
> > running build_ext
> > building 'bzrlib._dirstate_helpers_c' extension
> > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
> > -Wstrict-prototypes -fPIC -I/usr/include/python2.4 -c
> > bzrlib/_dirstate_helpers_c.c -o build/temp.linux-
> > i686-2.4/bzrlib/_dirstate_helpers_c.o
> > unable to execute gcc: No such file or directory
> > error: command 'gcc' failed with exit status 1
[...]
> > Should we have some sort of is_gcc_availible detection?
> > or
> > Should we have a flag to tell 'setup install' not to try and build the
> > c files?
>
> In generic case if some python library want to build C-extension
> it means that without such extension it cannot work correctly.
> So standard distutils library does not have or support detection
> of available compiler. (And this main reason why libraries with
> C-extensions is hard to use on Windows without corresponding
> python-based installer for exact Python version).
>
> But Bazaar is different here, because our main goal -- "work even without C".
> So if we need is_gcc_available() we should implement it by self.
> I just want to point that on win32 it should check (by default)
> availability of MSVC 7.1.
What about something like this? Instead of looking for a C compiler in
setup.py (which distutils.compiler has to do, anyway), simply check if
the compilation failed and print a warning without breaking the build
process.
Lukas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: distutils-build.diff
Type: text/x-patch
Size: 981 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070911/eef41160/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Toto je =?ISO-8859-1?Q?digit=E1lne?=
=?ISO-8859-1?Q?_podp=EDsan=E1?= =?UTF-8?Q?_=C4=8Das=C5=A5?=
=?ISO-8859-1?Q?_spr=E1vy?=
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070911/eef41160/attachment.pgp
More information about the bazaar
mailing list