Jim Dukarm wrote:
> Now setup.py runs to completion. I have not figured out specifically
> what was wrong, but possibly the setup is trying to copy a dll to a
> nonexistent location, or something like that.
It was trying to *build* a DLL (or rather a .pyd file, really the same
thing). My guess is you don't have a C compiler on the workstation...
definitely a common state of affairs on Windows machines. (Or, a
configuration problem is preventing Python's distutils from running your
compiler.)
Folks, since you're mandating the use of _c_htmltext now, it would be
very helpful if the setup script could recover gracefully from the
build_ext failure, thus allowing the installation of Quixote with the
Python htmltext implementation. This would be a definite benefit for
Quixote on Win32.
Here's a suggestion... when distutils fails, it throws a SystemExit; how
about catching it and trying again without ext_modules?
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)
Very nice setup script, by the way. The built-up dict is a great approach.
-- Graham