aboutsummaryrefslogtreecommitdiffstats
path: root/python/gevent/core.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-07-12 23:40:30 -0700
committerJames Taylor <user234683@users.noreply.github.com>2018-07-12 23:41:07 -0700
commitc3b9f8c4582882cd1f768b0727eca75475bb4f94 (patch)
tree5b4a1c693fd5b7416f1d5a75862e633502e77ca7 /python/gevent/core.py
parentfe9fe8257740529f5880693992e4eeca35c7ea3e (diff)
downloadyt-local-c3b9f8c4582882cd1f768b0727eca75475bb4f94.tar.lz
yt-local-c3b9f8c4582882cd1f768b0727eca75475bb4f94.tar.xz
yt-local-c3b9f8c4582882cd1f768b0727eca75475bb4f94.zip
track embedded python distribution
Diffstat (limited to 'python/gevent/core.py')
-rw-r--r--python/gevent/core.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/python/gevent/core.py b/python/gevent/core.py
new file mode 100644
index 0000000..8944f12
--- /dev/null
+++ b/python/gevent/core.py
@@ -0,0 +1,22 @@
+# Copyright (c) 2009-2015 Denis Bilenko and gevent contributors. See LICENSE for details.
+from __future__ import absolute_import
+
+import os
+
+from gevent._util import copy_globals
+
+try:
+ if os.environ.get('GEVENT_CORE_CFFI_ONLY'):
+ raise ImportError("Not attempting corecext")
+
+ from gevent.libev import corecext as _core
+except ImportError:
+ if os.environ.get('GEVENT_CORE_CEXT_ONLY'):
+ raise
+
+ # CFFI/PyPy
+ from gevent.libev import corecffi as _core
+
+copy_globals(_core, globals())
+
+__all__ = _core.__all__ # pylint:disable=no-member