On Tue, Oct 28, 2014 at 8:40 AM, 'Terry Brown' via leo-editor <
[email protected]> wrote:

> +if not os.environ.get('_', '').endswith('pip'):



if not 'pip-egg-info' in sys.argv:

instead seems to satisfy both `pip install ...` and `python setup.py ...`

On my machine the below doesn't emit anything with underscore or pip in it,
using the block below just prior to the "if not" test.

for e in os.environ:
    print e

I chose 'pip-egg-info' by dint of insert `print sys.argv`, which emits:

['-c', 'egg_info', '--egg-base', 'pip-egg-info']

-matt

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to