durusmail: quixote-users: Re: Installation docs (was Re: Draft of Quixote white paper)
Re: Draft of Quixote white paper (A.M. Kuchling)
2003-06-25
Installation docs (was Re: Draft of Quixote white paper)
2003-08-02
Re: Installation docs (was Re: Draft of Quixote white paper)
2003-08-02
2003-08-02
Re: Installation docs (was Re: Draft of Quixote white paper)
Graham Fawcett
2003-08-02
Graham Fawcett wrote:


> At the risk of sounding like a broken record, allow me to re-post my
> suggested modification to setup.py:
>
>     try:
>         core.setup(**kw)
>
>     except SystemExit, errmsg:
>         if not kw.has_key('ext_modules'):
>         raise
>         else:
>         print '\a'
>         print 'Could not build C implementation of htmltext! Reason:'
>         print errmsg
>         print 'Failing over to Python implementation.'
>         del kw['ext_modules']
>         core.setup(**kw)

Gosh, what happened to my indentation? Let me try again.

     try:
         core.setup(**kw)
     except SystemExit, errmsg:
         if not kw.has_key('ext_modules'):
             raise
         else:
             print '\a'
             print 'Could not build C implementation of htmltext! Reason:'
             print errmsg
             print 'Failing over to Python implementation.'
             del kw['ext_modules']
             core.setup(**kw)


--g.




reply