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 xdegaye
Recipients martin.panter, vstinner, xdegaye, yan12125
Date 2016-07-17.17:15:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468775725.99.0.402113522288.issue26662@psf.upfronthosting.co.za>
In-reply-to
Content
This patch follows the first mechanism listed by Martin. The change in configure.ac fixes the problem described by Victor, it does not generate an empty Objects/typeslots.inc file when python is not found that would cause the cryptic " <class 'RuntimeError'>: invalid slot offset" errors on subsequent builds.

The change in Objects/typeslots.py is not strictly necessary to fix the problem but prevents typeslots.py to create an invalid typeslots.inc file through the previous stdout redirection mechanism when, for example, typeslots.py is modified inadvertently with a change that is not python2 compatible and typeslots.py is run by python2 and fails.
History
Date User Action Args
2016-07-17 17:15:27xdegayesetrecipients: + xdegaye, vstinner, martin.panter, yan12125
2016-07-17 17:15:25xdegayesetmessageid: <1468775725.99.0.402113522288.issue26662@psf.upfronthosting.co.za>
2016-07-17 17:15:25xdegayelinkissue26662 messages
2016-07-17 17:15:25xdegayecreate