Permalink
Browse files

Merge pull request #8 from scoder/master

avoid setuptools dependency in setup.py
  • Loading branch information...
2 parents 7b39032 + b0cacc2 commit acb6c3947a4c47e4ccaa54970cb7982497a2e80c @SimonSapin SimonSapin committed Apr 22, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 setup.py
View
@@ -2,7 +2,12 @@
import re
import os.path
-from setuptools import setup
+try:
+ from setuptools import setup
+ extra_kwargs = {'test_suite': 'cssselect.tests'}
+except ImportError:
+ from distutils.core import setup
+ extra_kwargs = {}
ROOT = os.path.dirname(__file__)
@@ -24,7 +29,6 @@
url='http://packages.python.org/cssselect/',
license='BSD',
packages=['cssselect'],
- test_suite='cssselect.tests',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
@@ -38,4 +42,5 @@
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
],
+ **extra_kwargs
)

0 comments on commit acb6c39

Please sign in to comment.