summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2007-04-17 03:46:19 +0000
committerJason Pellerin <jpellerin@gmail.com>2007-04-17 03:46:19 +0000
commit9b89791b58e9b5ec4cd4a12e774d221f0974da9d (patch)
treecd82053ed4dcf4b6900cd2a6777be0d6a54d90b6 /setup.py
parent5c6eb51aaa285a6080cc3aa34a22897eed19852a (diff)
downloadnose-9b89791b58e9b5ec4cd4a12e774d221f0974da9d.tar.gz
Fixed commands module. Started work on making setuptools optional for install -- setup most likely is broken.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py44
1 files changed, 22 insertions, 22 deletions
diff --git a/setup.py b/setup.py
index 1cc3dbc..35164e1 100644
--- a/setup.py
+++ b/setup.py
@@ -1,10 +1,26 @@
import sys
-import ez_setup
-ez_setup.use_setuptools()
-
-from setuptools import setup, find_packages
from nose import __version__ as VERSION
+try:
+ from setuptools import setup, find_packages
+ addl_args = dict(
+ packages = find_packages(),
+ entry_points = {
+ 'console_scripts': [
+ 'nosetests = nose:run_exit'
+ ],
+ 'distutils.commands': [
+ ' nosetests = nose.commands:nosetests'
+ ],
+ },
+ test_suite = 'nose.collector',
+ )
+except ImportError:
+ addl_args = dict(
+ packages = 'FIXME',
+ # FIXME -- nosetests script
+ )
+
setup(
name = 'nose',
version = VERSION,
@@ -33,23 +49,6 @@ setup(
'http://somethingaboutorange.com/mrl/projects/nose/nose-%s.tar.gz' \
% VERSION,
package_data = { '': [ '*.txt' ] },
- packages = find_packages(),
- entry_points = {
- 'console_scripts': [
- 'nosetests = nose:run_exit'
- ],
- 'nose.plugins': [
- 'coverage = nose.plugins.cover:Coverage',
- 'doctest = nose.plugins.doctests:Doctest',
- 'profile = nose.plugins.prof:Profile',
- 'attrib = nose.plugins.attrib:AttributeSelector',
- 'missed = nose.plugins.missed:MissedTests'
- ],
- 'distutils.commands': [
- ' nosetests = nose.commands:nosetests'
- ],
- },
- test_suite = 'nose.collector',
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
@@ -58,5 +57,6 @@ setup(
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Testing'
- ]
+ ],
+ **addl_args
)