Skip to content

Commit 35e2862

Browse files
committed
Move all optional dependencies into setup.py
1 parent 92ed92a commit 35e2862

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

setup.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
from distutils.core import setup
21
import ast
32
import os
43
import codecs
54

5+
from setuptools import setup
6+
7+
68
classifiers=[
79
'Development Status :: 5 - Production/Stable',
810
'Intended Audience :: Developers',
@@ -55,4 +57,13 @@
5557
install_requires=[
5658
'six',
5759
],
60+
extras_require={
61+
":python_version == '2.6'": ["ordereddict"],
62+
"lxml:python_implementation == 'CPython'": ["lxml"],
63+
"genshi": ["genshi"],
64+
"datrie": ["datrie"],
65+
"charade": ["charade"],
66+
"all": ["genshi", "datrie", "charade"],
67+
"all:python_implementation == 'CPython'": ["lxml"],
68+
},
5869
)

0 commit comments

Comments
 (0)