|
12 | 12 | distributed under the License is distributed on an "AS IS" BASIS, |
13 | 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14 | 14 | See the License for the specific language governing permissions and |
15 | | - limitations under the License. |
| 15 | + limitations under the License. |
16 | 16 | """ |
17 | 17 | import re |
18 | 18 | import sys |
19 | | -from distutils.core import setup |
| 19 | + |
| 20 | +try: |
| 21 | + from distribute.core import setup |
| 22 | +except ImportError: |
| 23 | + from setuptools import setup |
20 | 24 |
|
21 | 25 | if sys.version_info < (2, 4): |
22 | 26 | print "Spring Python only supports Python 2.4 and higher" |
|
32 | 36 | platforms = ["Python >= 2.4"], |
33 | 37 | license='Apache Software License (http://www.apache.org/licenses/LICENSE-2.0)', |
34 | 38 | scripts=['plugins/coily'], |
35 | | - packages=['springpython', |
| 39 | + packages=['springpython', |
36 | 40 | 'springpython.aop', |
37 | | - 'springpython.jms', |
| 41 | + 'springpython.jms', |
38 | 42 | 'springpython.config', |
39 | 43 | 'springpython.container', |
40 | 44 | 'springpython.context', |
41 | | - 'springpython.database', |
42 | | - 'springpython.factory', |
43 | | - 'springpython.remoting', |
44 | | - 'springpython.remoting.hessian', |
45 | | - 'springpython.remoting.pyro', |
| 45 | + 'springpython.database', |
| 46 | + 'springpython.factory', |
| 47 | + 'springpython.remoting', |
| 48 | + 'springpython.remoting.hessian', |
| 49 | + 'springpython.remoting.pyro', |
46 | 50 | 'springpython.security', |
47 | 51 | 'springpython.security.context', |
48 | 52 | 'springpython.security.providers', |
|
57 | 61 | "Programming Language :: Python", |
58 | 62 | "Operating System :: OS Independent" |
59 | 63 | ] |
60 | | - |
| 64 | + |
61 | 65 | ) |
62 | 66 |
|
0 commit comments