-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
55 lines (46 loc) · 1.61 KB
/
setup.py
File metadata and controls
55 lines (46 loc) · 1.61 KB
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
import os
import sys
if sys.version_info < (2, 6):
sys.exit("ERROR: Python 2.6 is required to run Palabra.")
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
from distutils.core import Extension
import palabralib.constants as constants
ext_modules = [Extension('cPalabra', sources=['palabralib/cpalabramodule.c', 'palabralib/cpalabra.c'])]
# see http://pypi.python.org/pypi?%3Aaction=list_classifiers
CLASSIFIERS = [
"Development Status :: 4 - Beta"
, "Environment :: X11 Applications :: GTK"
, "Intended Audience :: End Users/Desktop"
, "License :: OSI Approved :: GNU General Public License (GPL)"
, "Operating System :: POSIX :: Linux" # for now
, "Natural Language :: English"
, "Programming Language :: C"
, "Programming Language :: Python :: 2.6"
, "Topic :: Games/Entertainment :: Puzzle Games"
]
PACKAGE_DATA = [
'xml/patterns.xml',
'resources/icon1.png',
'resources/icon2.png'
]
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name="palabra"
, version=constants.VERSION
, license="GNU General Public License (GPL)"
, author="Simeon Visser"
, author_email="simeonvisser@gmail.com"
, description="A free crossword editor"
, long_description=read('README')
, url=constants.WEBSITE
, requires=['lxml']
, packages=['palabralib']
, package_dir={'palabralib': 'palabralib'}
, package_data={'palabralib': PACKAGE_DATA}
, entry_points={'console_scripts':['palabra = palabralib.gui:main']}
, classifiers=CLASSIFIERS
, include_dirs=['palabralib']
, zip_safe=False
, ext_modules=ext_modules)