#!/usr/bin/env python
# coding: utf-8
from util import do_command, STDOUT, PIPE, sort_lines
from sys import argv
PY_VERSION = argv[1]

prefix = '/Library/Python/%s/site-packages' % PY_VERSION
suffix = "*-py%s.egg-info" % PY_VERSION

@do_command('find', prefix, '-name', suffix, process=STDOUT, stdout=PIPE)
@sort_lines
def process_lines(lines):
    from os.path import splitext, basename
    for line in lines:
        line = splitext(basename(line))[0].rsplit('-', 2)[0]
        yield line + '\n'

b65617d3aba62fc57d2deb4b083d849c13fe79ff
<mask token>

<mask token>


@do_command('find', prefix, '-name', suffix, process=STDOUT, stdout=PIPE)
@sort_lines
def process_lines(lines):
    from os.path import splitext, basename
    for line in lines:
        line = splitext(basename(line))[0].rsplit('-', 2)[0]
        yield line + '\n'

<mask token>
PY_VERSION = argv[1]
prefix = '/Library/Python/%s/site-packages' % PY_VERSION
suffix = '*-py%s.egg-info' % PY_VERSION


@do_command('find', prefix, '-name', suffix, process=STDOUT, stdout=PIPE)
@sort_lines
def process_lines(lines):
    from os.path import splitext, basename
    for line in lines:
        line = splitext(basename(line))[0].rsplit('-', 2)[0]
        yield line + '\n'

from util import do_command, STDOUT, PIPE, sort_lines
from sys import argv
PY_VERSION = argv[1]
prefix = '/Library/Python/%s/site-packages' % PY_VERSION
suffix = '*-py%s.egg-info' % PY_VERSION


@do_command('find', prefix, '-name', suffix, process=STDOUT, stdout=PIPE)
@sort_lines
def process_lines(lines):
    from os.path import splitext, basename
    for line in lines:
        line = splitext(basename(line))[0].rsplit('-', 2)[0]
        yield line + '\n'

#!/usr/bin/env python
# coding: utf-8
from util import do_command, STDOUT, PIPE, sort_lines
from sys import argv
PY_VERSION = argv[1]

prefix = '/Library/Python/%s/site-packages' % PY_VERSION
suffix = "*-py%s.egg-info" % PY_VERSION

@do_command('find', prefix, '-name', suffix, process=STDOUT, stdout=PIPE)
@sort_lines
def process_lines(lines):
    from os.path import splitext, basename
    for line in lines:
        line = splitext(basename(line))[0].rsplit('-', 2)[0]
        yield line + '\n'
