forked from saitoha/tff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
42 lines (35 loc) · 1.66 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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages, Extension
from tff import __version__, __license__, __author__, __doc__
import inspect
import os
filename = inspect.getfile(inspect.currentframe())
dirpath = os.path.abspath(os.path.dirname(filename))
extra_args = []
if os.uname()[0] == 'Darwin':
# Clang no longer supports GCC arguments, and will fail in the future
extra_args.append('-Wno-error=unused-command-line-argument-hard-error-in-future')
setup(name = 'tff',
version = __version__,
description = 'Terminal Filter Framework',
long_description = open(dirpath + "/README.rst").read(),
py_modules = ['tff'],
ext_modules = [Extension('ctff', sources = ['ctff.c'], extra_compile_args = extra_args)],
eager_resources = [],
classifiers = ['Development Status :: 4 - Beta',
'Topic :: Terminals',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python'
],
keywords = 'terminal filter',
author = __author__,
author_email = '[email protected]',
url = 'https://github.com/saitoha/tff',
license = __license__,
packages = find_packages(exclude=['test']),
zip_safe = False,
include_package_data = False,
install_requires = [],
)