-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·72 lines (64 loc) · 2.48 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
#!/usr/bin/env python
# $Id$
# Copyright: (C) 1998-2015 by David J. Goodger
# License: GPL 2 (see GPL2.txt)
import sys
import os
import glob
try:
from distutils.core import setup
from distutils.command.build_py import build_py
except ImportError:
print 'Error: The "distutils" standard module, which is required for the '
print 'installation of Docutils, could not be found. You may need to '
print 'install a package called "python-devel" (or similar) on your '
print 'system using your package manager.'
sys.exit(1)
# From <http://groups.google.de/[email protected]>.
from distutils.command.install import INSTALL_SCHEMES
for scheme in INSTALL_SCHEMES.values():
scheme['data'] = scheme['purelib']
def do_setup():
if sys.hexversion < 0x02050000: # Python 2.5
print """\
Polyform Puzzler requires Python 2.5 or later
(Python %s installed).""" % (sys.version.split()[0],)
sys.exit(1)
kwargs = package_data.copy()
dist = setup(**kwargs)
return dist
package_data = {
'name': 'puzzler',
'description': 'Polyform Puzzler',
'long_description': """\
Polyform Puzzler is a set of solvers for many polyform
puzzles (like Pentominoes and Soma Cubes), and a software
toolkit for exploring & solving polyform puzzles. It
consists of a set of front-end applications for specific
polyform puzzles and a Python library that does the heavy
lifting. New polyforms and new puzzles can easily be
defined and added. Requires Python 2.5 or higher.""", # wrap at col 60
'url': 'http://puzzler.sourceforge.net/',
'version': '1+SVN',
'author': 'David Goodger',
'author_email': '[email protected]',
'license': 'GPL 2',
'platforms': 'OS-independent',
'package_dir': {'puzzler': 'puzzler',},
'packages': ['puzzler', 'puzzler.puzzles'],
'scripts' : glob.glob('bin/*.py'),}
"""Distutils setup parameters."""
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Games/Entertainment :: Puzzle Games',
'Topic :: Scientific/Engineering :: Mathematics',]
"""Trove classifiers for the Distutils "register" command."""
if __name__ == '__main__' :
do_setup()