I have figured two ways to create a package / compile python scripts:
Using Compileall:
import re compileall.compile_dir('Lib/', rx=re.compile(r'[/\\][.]svn'), force=True)
Using SetupTools
Though SetupTools creates a .egg file, it creates a dependency on the users to have setuptools installed if
pkg_resources
is being used.
So how do i either remove the dependency on setuptools or use compieall to create a binary like an .egg file ?