Disable writing parsetab files to disk.
This fixes https://github.com/mailgun/flanker/issues/206.
Before this change, when multiple Python processes are simultaneously
doing a from flanker.addresslib import address, it's possible for some
of them to crash in ply code.
See https://github.com/dabeaz/ply/pull/184, where I attempted to work around this issue by changing ply. You can see in this comment: https://github.com/dabeaz/ply/pull/184#issuecomment-425413897 that the author of ply suggests two workarounds for this issue:
- Remove
plyas a dependency in setup.py and copy the source code ofplyintoflanker. - Disable writing parsetab files to disk when invoking
yacc.
- seemed like the simpler solution to me, so that's what I've done here.
Can one of the admins verify this patch?
(Full disclosure, I haven't tested this at all because I'm not sure how to.)
Bump! Any feedback on this PR?
Bump!
Bump! Can anyone take a look?
Bump! Anyone got some time to take a look at this?