Skip to content

Commit

Permalink
Merge pull request #8 from scoder/master
Browse files Browse the repository at this point in the history
avoid setuptools dependency in setup.py
  • Loading branch information
SimonSapin committed Apr 22, 2012
2 parents 7b39032 + b0cacc2 commit acb6c39
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions setup.py
Expand Up @@ -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__)
Expand All @@ -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',
Expand All @@ -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.