/
setup.py
executable file
·59 lines (53 loc) · 1.99 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
has_setuptools = False
try:
from setuptools import setup, Extension
has_setuptools = True
except ImportError:
from distutils.core import setup, Extension
import sys,os,string,time
version = '0.7'
kwargs = dict()
if has_setuptools:
kwargs = dict(
include_package_data = True,
install_requires = ['setuptools'],
zip_safe = False)
setup(
#-- Package description
name = 'arithmetic',
version = version,
description = 'Arithmetic module',
author = 'Patricio Paez',
author_email = 'pp@pp.com.mx',
url = 'http://pp.com.mx/python/arithmetic/',
license = 'GNU GPL v2 or later',
py_modules = [ 'arithmetic' ],
data_files = [('share/arithmetic-' + version,
[ 'COPYING',
'CHANGELOG', 'README',
'tutorial-1', 'tutorial-2',
'pyroom-0.4.1-arithmetic.patch', 'calc.py',
'manual.rst', 'manual.html']),
('share/arithmetic-' + version + '/vim-plugin',
['vim-plugin/arithmetic.vim',
'vim-plugin/wrapper.py',
'vim-plugin/install.sh',
'vim-plugin/tutorial.txt',
'vim-plugin/arithmetic.txt']),
],
scripts = [ 'editor-tk.py', 'arithmetic', 'editor-gtk.py',
'editor.ui', 'editor-wx.py' ],
platforms = ['any'],
long_description='''arithmetic is a Python module that allows mixing arithmetic
operations and text. It resembles the calculator program bc.
Tk, GTK and wxWidgets based sample editors that use the module
are provided as a starting point. A plugin for Vim, a plugin ford Zim,
and a patch for the PyRoom editors are included.
Tutorial documents are included, they will quickly show
all the features of arithmetic.''',
classifiers=[ "Development Status :: 3 - Alpha",
"Topic :: Text Processing",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3"
],
)