[issue4706] try to build a C module, but don't worry if it doesn't work

2009-03-31 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek resolution: -> duplicate status: open -> closed superseder: -> Optional extensions in setup.py ___ Python tracker ___ ___

[issue4706] try to build a C module, but don't worry if it doesn't work

2009-01-31 Thread Zooko O'Whielacronx
Zooko O'Whielacronx added the comment: Here's Twisted failing to build because Python.h isn't found: Added file: http://bugs.python.org/file12913/Twisted-build-no-Python.h.txt ___ Python tracker ___

[issue4706] try to build a C module, but don't worry if it doesn't work

2009-01-31 Thread Zooko O'Whielacronx
Zooko O'Whielacronx added the comment: Here's Twisted failing to build when gcc is not installed: Added file: http://bugs.python.org/file12912/Twisted-build-with-no-gcc.txt ___ Python tracker __

[issue4706] try to build a C module, but don't worry if it doesn't work

2009-01-31 Thread Zooko O'Whielacronx
Changes by Zooko O'Whielacronx : Added file: http://bugs.python.org/file12911/build-with-no-gcc.txt ___ Python tracker ___ ___ Python-bugs-list

[issue4706] try to build a C module, but don't worry if it doesn't work

2009-01-31 Thread Zooko O'Whielacronx
Zooko O'Whielacronx added the comment: Oh! And simplejson is able to cleanly fall back to pure Python when gcc is not found, as well. Perhaps Twisted http://twistedmatrix.com/trac/ticket/3586 could use simplejson's approach. ___ Python tracker

[issue4706] try to build a C module, but don't worry if it doesn't work

2009-01-31 Thread Zooko O'Whielacronx
Zooko O'Whielacronx added the comment: Hey check it out -- simplejson can try to build its extension module, and when it fails to compile (in this case because there is no Python.h), then it prints out a warning message and finishes a successful build: Added file: http://bugs.python.org/file129

[issue4706] try to build a C module, but don't worry if it doesn't work

2009-01-27 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: As far as Twisted is concerned, the two cases Tarek mentioned aren't really relevant. In order for Zooko's use case to be handled ("install Twisted on an OLPC"), what would be ideal is if there were a way to tell distutils about an extension which is optio

[issue4706] try to build a C module, but don't worry if it doesn't work

2009-01-27 Thread Zooko O'Whielacronx
Zooko O'Whielacronx added the comment: Tarek: Yes, failure to build an extension module for any reason should definitely cause "build" to fail by default. However, many Python packages seem to come with optional extension modules, typically for a performance speed-up. simplejson, zope.interfa

[issue4706] try to build a C module, but don't worry if it doesn't work

2009-01-04 Thread Tarek Ziadé
Tarek Ziadé added the comment: I can see two cases here: 1/ a compiler is not found, and build_ext can't proceed 2/ a compiler is found but it fails For 2/, I don't think it's wise to fail silently if a compiler is found and the build fails, because that can hide an unexpected problem. For 1/

[issue4706] try to build a C module, but don't worry if it doesn't work

2008-12-20 Thread Zooko O'Whielacronx
New submission from Zooko O'Whielacronx : I was trying to install Twisted on my son's OLPC. Twisted comes with a handful of C extensions which are all optional and most of which are not expected to compile on this platform anyway (they are platform-specific for Mac or Windows). If my son's OLPC