4 from distutils.core import setup
8 root_dir = os.path.abspath(os.path.dirname(sys.argv[0]))
9 git_dir = os.path.join(root_dir, '.git')
10 head = open(os.path.join(git_dir, 'HEAD')).read().strip()
12 if head.startswith(prefix):
13 path = head[len(prefix):].split('/')
14 return open(os.path.join(git_dir, *path)).read().strip()[:7]
18 open('p2pool/__init__.py', 'wb').write('__version__ = %r\r\n\r\nDEBUG = False\r\n' % get_version())
22 description='Peer-to-peer Bitcoin mining pool',
23 author='Forrest Voight',
24 author_email='forrest@forre.st',
25 url='http://p2pool.forre.st/',
26 data_files=[('', ['README', 'README-Litecoin'])],
28 console=['run_p2pool.py'],
29 options=dict(py2exe=dict(
31 dll_excludes=['w9xpopen.exe'],
32 includes=['twisted.web.resource', 'ltc_scrypt'],