Re: [Python-Dev] Help with the build system and my first patch

2014-06-09 Thread Steven Stewart-Gallus
> Do you mean other than potentially detecting something in the > configurescript and using an #ifdef guard? Yes, that works on a static function inside a file level but I need to conditionally include a whole file into the build. ___ Python-Dev mailing

[Python-Dev] Help with the build system and my first patch

2014-06-08 Thread Steven Stewart-Gallus
systems. I need to extract this functionality out from _Py_set_inheritable because it needs to run in the dangerous context of right after a fork and I don't believe it can throw exceptions. How can I conditionally compile some library code for certain platforms only? Thank you, Steven St