-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
97 lines (70 loc) · 1.96 KB
/
setup.py
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
""" Setup script """
import shutil
import os
import sys
import glob
from setuptools import setup, find_packages
try:
import py2exe
except ImportError:
pass
import smserver
for filename in glob.glob("cfg/*.yml*"):
shutil.copy(filename, "smserver/_fallback_conf")
CONF_DIR = None
if os.path.splitdrive(sys.executable)[0] != "":
CONF_DIR = "conf"
if not CONF_DIR and os.path.isdir("/etc/smserver"):
CONF_DIR = "/etc/smserver"
if not CONF_DIR:
try:
os.mkdir("/etc/smserver")
CONF_DIR = "/etc/smserver"
except:
pass
if not CONF_DIR:
CONF_DIR = "conf"
setup(
name='smserver',
version=smserver.__version__,
packages=find_packages(),
author="Sélim Menouar",
author_email="[email protected]",
description="An implementation of a Stepmania server",
long_description=open('README.rst').read(),
include_package_data=True,
url='http://github.com/ningirsu/stepmania-server',
classifiers=[
'Programming Language :: Python',
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Topic :: Games/Entertainment',
'Topic :: Games/Entertainment :: Arcade',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
extras_require={
':python_version=="3.3"': ['asyncio', 'enum34'],
},
install_requires=[
'pyyaml',
'redis',
'sqlalchemy',
'websockets',
],
scripts=['scripts/smserver'],
console=['scripts/smserver'],
options={
"py2exe": {
'packages': ['smserver'],
"bundle_files": 0,
"optimize": 2
}
},
zipfile=None,
license="MIT",
data_files=[(CONF_DIR, ['cfg/conf.yml.orig'])],
)