-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (46 loc) · 1.4 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
#!/usr/bin/env python3
import sys
import distutils.util
try:
# First try to load most advanced setuptools setup.
from setuptools import setup
except:
# Fall back if setuptools is not installed.
from distutils.core import setup
# check Python's version
if sys.version_info < (3, 2):
sys.stderr.write('This module requires at least Python 3.2\n')
sys.exit(1)
# check linux platform
platform = distutils.util.get_platform()
if not platform.startswith('linux'):
sys.stderr.write("This module is not available on %s\n" % platform)
sys.exit(1)
classif = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: GPLv3 License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Libraries :: Python Modules',
]
# Do setup
setup(
name='merge3',
version='0.0.1',
description='3-way merge of texts.',
author='Fpemud',
author_email='fpemud@sina.com',
license='GPLv3 License',
platforms='Linux',
classifiers=classif,
url='http://github.com/fpemud/merge3',
download_url='',
py_modules=['merge3'],
package_dir={'': 'python3'},
)