-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (27 loc) · 795 Bytes
/
Copy pathsetup.py
File metadata and controls
31 lines (27 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python
import os
from distutils.core import setup
import subprocess
# convert readme to rst format
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except:
long_description = ''
versionfile = "PodSixNet/version.py"
if not os.path.isfile(versionfile):
# assume git checkout
__version__ = str(subprocess.check_output(["git", "describe", "--tag", "--always"])).strip("\n")
else:
# created by pip
exec(open(versionfile).read())
setup(
version=__version__,
name='PodSixNet',
description='Multiplayer networking library for games',
long_description=long_description,
author='Chris McCormick',
author_email='chris@mccormick.cx',
url='https://github.com/chr15m/PodSixNet',
packages=['PodSixNet'],
)