This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author remram
Recipients remram
Date 2014-02-20.19:08:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392923294.74.0.945315907553.issue20705@psf.upfronthosting.co.za>
In-reply-to
Content
While this is obviously a programming error, distutils currently has no check for the 'sources' list being empty, which might or might not result in a self-explanatory error message once the CCompiler's link() method is called (the exact error depends on the subclass's implementation).

It seems that some code had been put in initially to handle this case ('objects or []' constructs) but this has been broken since (objects[0] used by most subclasses).

Since objects can only be empty if sources was empty, I think catching this case in build_extension() (only caller of link_shared_object) makes sense.

Trivial patch attached, should apply on all versions.
History
Date User Action Args
2014-02-20 19:08:14remramsetrecipients: + remram
2014-02-20 19:08:14remramsetmessageid: <1392923294.74.0.945315907553.issue20705@psf.upfronthosting.co.za>
2014-02-20 19:08:14remramlinkissue20705 messages
2014-02-20 19:08:14remramcreate