-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·88 lines (73 loc) · 2.37 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
"""Installs package using setuptools
Run:
python setup.py install
to install this package.
"""
try:
import ez_setup
ez_setup.use_setuptools()
except ImportError:
pass
from setuptools import setup
from distutils.command.install import INSTALL_SCHEMES
import sys
required_python_version = '2.4'
###############################################################################
# arguments for the setup command
###############################################################################
VERSION = (0, 3, 1)
__version__ = VERSION
__versionstr__ = '.'.join(map(str, VERSION))
name = "sneakylang"
version = __versionstr__
desc = "Extensible framework for easy creation of extensible WikiLanguages"
long_desc = """"""
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Software Development :: Documentation",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing",
"Topic :: Text Processing :: Markup :: HTML",
"Topic :: Text Processing :: Markup :: XML",
]
author="Lukas Almad Linhart"
author_email="bugs@almad.net"
url="http://projects.almad.net/sneakylang"
cp_license="BSD"
packages=[
"sneakylang"
]
download_url="http://www.almad.net/download/sneakylang/sneakylang-"+version+".tar.gz"
data_files=[]
###############################################################################
# end arguments for setup
###############################################################################
def main():
if sys.version < required_python_version:
s = "I'm sorry, but %s %s requires Python %s or later."
print s % (name, version, required_python_version)
sys.exit(1)
# set default location for "data_files" to platform specific "site-packages"
# location
for scheme in INSTALL_SCHEMES.values():
scheme['data'] = scheme['purelib']
setup(
name=name,
version=version,
description=desc,
long_description=long_desc,
classifiers=classifiers,
author=author,
author_email=author_email,
url=url,
license=cp_license,
packages=packages,
download_url=download_url,
data_files=data_files,
)
if __name__ == "__main__":
main()