Show More
@@ -4,7 +4,7 b' import os' | |||||
4 | import sys |
|
4 | import sys | |
5 | import platform |
|
5 | import platform | |
6 |
|
6 | |||
7 | if sys.version_info < (2, 6): |
|
7 | if sys.version_info < (2, 6) or sys.version_info >= (3,): | |
8 | raise Exception('Kallithea requires python 2.6 or 2.7') |
|
8 | raise Exception('Kallithea requires python 2.6 or 2.7') | |
9 |
|
9 | |||
10 |
|
10 | |||
@@ -109,12 +109,7 b' except IOError as err:' | |||||
109 | ) |
|
109 | ) | |
110 | long_description = description |
|
110 | long_description = description | |
111 |
|
111 | |||
112 | try: |
|
112 | import setuptools | |
113 | from setuptools import setup, find_packages |
|
|||
114 | except ImportError: |
|
|||
115 | from ez_setup import use_setuptools |
|
|||
116 | use_setuptools() |
|
|||
117 | from setuptools import setup, find_packages |
|
|||
118 |
|
113 | |||
119 | # monkey patch setuptools to use distutils owner/group functionality |
|
114 | # monkey patch setuptools to use distutils owner/group functionality | |
120 | from setuptools.command import sdist |
|
115 | from setuptools.command import sdist | |
@@ -125,10 +120,9 b' class sdist_new(sdist_org):' | |||||
125 | self.owner = self.group = 'root' |
|
120 | self.owner = self.group = 'root' | |
126 | sdist.sdist = sdist_new |
|
121 | sdist.sdist = sdist_new | |
127 |
|
122 | |||
128 | # packages |
|
123 | packages = setuptools.find_packages(exclude=['ez_setup']) | |
129 | packages = find_packages(exclude=['ez_setup']) |
|
|||
130 |
|
124 | |||
131 | setup( |
|
125 | setuptools.setup( | |
132 | name='Kallithea', |
|
126 | name='Kallithea', | |
133 | version=__version__, |
|
127 | version=__version__, | |
134 | description=description, |
|
128 | description=description, |
General Comments 0
You need to be logged in to leave comments.
Login now