-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathsetup.py
53 lines (46 loc) · 1.54 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
import os, sys
from setuptools import setup, find_packages, Extension
if sys.version_info[:2] < (3, 3):
raise RuntimeError('''Kaa requires Python 3.3 or later, with ncursesw support.
Please see https://pypi.python.org/pypi/kaaedit/#setup to install.
''')
try:
from Cython.Distutils import build_ext
cmdclass = {'build_ext': build_ext}
ext = Extension("_gappedbuf",
["_gappedbuf/_gappedbuf.pyx",
"_gappedbufre/_sre.c"])
except ImportError:
cmdclass = {}
ext = Extension("_gappedbuf",
["_gappedbuf/_gappedbuf.c",
"_gappedbufre/_sre.c"])
def read(fname):
return open(
os.path.join(os.path.dirname(__file__), fname)).read()
setup(
cmdclass = cmdclass,
name = "kaaedit",
version = "0.29.0",
description='kaa - console text editor.',
url='https://github.com/kaaedit/kaa',
author='Atsuo Ishimoto',
author_email='[email protected]',
long_description=read('README.rst'),
classifiers=[
"Programming Language :: Python :: 3",
"Development Status :: 3 - Alpha",
"Topic :: Text Editors",
"Topic :: Software Development :: Debuggers",
"Environment :: Console :: Curses",
"License :: OSI Approved :: MIT License", ],
license='MIT License',
install_requires=['curses_ex', 'pyjf3', 'setproctitle', 'kaadbg >= 0.3.0'],
zip_safe=True,
packages = find_packages(),
ext_modules = [ext],
entry_points = {
'console_scripts': [
'kaa = kaa.cui.main:run',
],}
)