# Path: scripts/pack.py
# def pack(sources, output):
#     """
#     Creates a single file python executable containing the given sources.
# 
#     `sources` is a list of filenames or globs. One of the entries must be a
#     __main__.py file.
# 
#     `output` is the filename that will be given to the executable.
# 
#     For example:
#         pack(['__main__.py', 'myproject/*.py'], 'myproject'])
#     This will create an executable called 'myproject'. This executable can be
#     run using:
#         ./myproject
#     or
#         python myproject
#     """
#     files = _expandGlobs(sources)
#     _zipFiles(files, output)
#     _addShebang(output)
#     _makeExecutable(output)
#     fileSize = int(_getFileSize(output) / 1024)
#     print('Executable created: %s (%skb)' % (output, fileSize))


from scripts.pack import pack
#!/usr/bin/env python


if __name__ == '__main__':
    # Create the `vimswitch` executable inside the `release` folder.
    # The executable will only contain the vimswitch application code i.e. the
    # test code will not be included.

    sources = [
        '__main__.py',
        'vimswitch/*.py'
    ]


# Path: scripts/pack.py
# def pack(sources, output):
#     """
#     Creates a single file python executable containing the given sources.
# 
#     `sources` is a list of filenames or globs. One of the entries must be a
#     __main__.py file.
# 
#     `output` is the filename that will be given to the executable.
# 
#     For example:
#         pack(['__main__.py', 'myproject/*.py'], 'myproject'])
#     This will create an executable called 'myproject'. This executable can be
#     run using:
#         ./myproject
#     or
#         python myproject
#     """
#     files = _expandGlobs(sources)
#     _zipFiles(files, output)
#     _addShebang(output)
#     _makeExecutable(output)
#     fileSize = int(_getFileSize(output) / 1024)
#     print('Executable created: %s (%skb)' % (output, fileSize))


# Path: make_release.py
from scripts.pack import pack

#!/usr/bin/env python


if __name__ == '__main__':
    # Create the `vimswitch` executable inside the `release` folder.
    # The executable will only contain the vimswitch application code i.e. the
    # test code will not be included.

    sources = [
        '__main__.py',
        'vimswitch/*.py'
    ]


    pack(sources, 'release/vimswitch')