X Tutup
Skip to content

Commit 07a6d5a

Browse files
author
Dariusz Suchojad
committed
Fix for SESPRINGPYTHONPY-154: Allow for running setup.py in 'develop' mode.
1 parent fd596c9 commit 07a6d5a

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

src/build.py

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@
1212
distributed under the License is distributed on an "AS IS" BASIS,
1313
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
See the License for the specific language governing permissions and
15-
limitations under the License.
15+
limitations under the License.
1616
"""
1717
import re
1818
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
2024

2125
if sys.version_info < (2, 4):
2226
print "Spring Python only supports Python 2.4 and higher"
@@ -32,17 +36,17 @@
3236
platforms = ["Python >= 2.4"],
3337
license='Apache Software License (http://www.apache.org/licenses/LICENSE-2.0)',
3438
scripts=['plugins/coily'],
35-
packages=['springpython',
39+
packages=['springpython',
3640
'springpython.aop',
37-
'springpython.jms',
41+
'springpython.jms',
3842
'springpython.config',
3943
'springpython.container',
4044
'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',
4650
'springpython.security',
4751
'springpython.security.context',
4852
'springpython.security.providers',
@@ -57,6 +61,6 @@
5761
"Programming Language :: Python",
5862
"Operating System :: OS Independent"
5963
]
60-
64+
6165
)
6266

0 commit comments

Comments
 (0)
X Tutup