[BUG][0.90.0] './setup.py install' on systems without gcc didn't work for me

Marius Kruger amanic at gmail.com
Mon Sep 10 17:06:38 BST 2007


hi all
I tried the following on a (debian) system without gcc installed:

===
bzr-0.90$ ./setup.py install

The python package 'Pyrex' is not available. If the .c files are available,
they will be built, but modifying the .pyx files will not rebuild them.

running install
running build
running build_py
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
===

after playing around a little I think I figured out how to get it installed,
by
commenting the following lines out of setup.py:
#add_pyrex_extension('bzrlib._dirstate_helpers_c')
#add_pyrex_extension('bzrlib._knit_load_data_c')


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?


regards
marius
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20070910/099ddcb7/attachment-0001.htm 


More information about the bazaar mailing list