Velocity Reviews

Velocity Reviews (
-   Python (
-   -   Automatic setup of meta path hooks? (

jwp 07-12-2012 01:37 AM

Automatic setup of meta path hooks?

I'm working on a meta path hook that performs compilation of C extension modules on import ( ; pip install c ). It mostly works, but I'm having a hard time finding a standard way to automatically install the hook upon interpreter startup.

I've thought about just having depending projects install the loader themselves, but I was hoping to make it seamless...Not to mention, there's the possibility of the case where the extension module is compiled and installed with In which case, the loader isn't necessary, so it seems inappropriate to reference and install the meta path hook in an outer package module.

Am I missing something? Is there some setuptools/distribute magicalawesome that I can use?

All times are GMT. The time now is 10:20 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.