-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
executable file
·43 lines (39 loc) · 1.16 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
#!/usr/bin/env python
""" setup.py for pygenie
"""
import os
from setuptools import setup, find_packages
try:
from setuptools import setup, find_packages
have_setuptools = True
except ImportError:
from distutils.core import setup
def find_packages():
return [
'pygenie',
]
have_setuptools = False
try:
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
from distutils.command.build_py import build_py
if have_setuptools:
add_keywords = dict( entry_points = \
{ 'console_scripts': \
['pygenie = pygenie:main', \
]
}, )
else:
add_keywords = dict( scripts = ['pygenie'], )
setup(
name ='pygenie',
version = '.1',
description = 'pygenie: a tool for analyzing cyclomatic complexity',
author = 'davin stanek',
url = 'http://svn.traceback.org/python/cyclic_complexity/',
package_dir = {'': 'lib'},
packages = find_packages('lib'),
py_modules = ['pygenie'],
cmdclass = {'build_py': build_py},
**add_keywords
)