Commits

Ralf Schmitt committed 6dcc729

do not embed libev and c-ares if environment variable gevent_embed is set to no

It was previously possible to do the same by removing the source
repositories. But that's not easy to do when installing with pip.

The following command now installs without the embedded libraries:

,----
| gevent_embed=no pip install gevent
`----

Comments (0)

Files changed (1)

 __version__ = re.search("__version__\s*=\s*'(.*)'", open('gevent/__init__.py').read(), re.M).group(1)
 assert __version__
 
-libev_embed = os.path.exists('libev')
-ares_embed = os.path.exists('c-ares')
+embed = os.environ.get("gevent_embed", "yes").lower().strip() not in ("0", "no", "off")
+libev_embed = embed and os.path.exists('libev')
+ares_embed = embed and os.path.exists('c-ares')
 define_macros = []
 libraries = []
 libev_configure_command = ["/bin/sh", abspath('libev/configure'), '> configure-output.txt']
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.