Python 2.2 <-> Solaris 2.6 installation errors

Martin v. Loewis martin at v.loewis.de
Wed Feb 13 02:33:29 EST 2002


Chris Wysocki <news at chriswysocki.com> writes:

> Any ideas, things to try?

It would help to find out why _built_objects isn't set. In theory, the
build_extension definition in setup.py is supposed to work this way:

- call the super build_extension
- if that fails, the extension will not have been build;
  print a warning, and be done
- if that succeeds, the extension is build, and self._built_objects
  is set to indicate which object files have been created
- the extension is imported. If that fails, the extension and its object
  files will be removed.

Now, for some reason, this does not happen on your system. You invoke
setup.py a second time, and what now happens is:

- call the super build_extension
- this determines that nothing has to be done, and returns without
  building anything, and not setting _built_objects
- importing the module fails, but _built_objects is not set.

It is understandable why it fails crashes the second time. What is
surprising is why it did not manage to remove the faulty readline
extension the first time (when it really did build it). Unfortunately,
Jeff did not report the output from the first make invocation, so this
is somewhat hard to tell.

Regards,
Martin




More information about the Python-list mailing list