File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
- from distutils .core import setup
1
+ try :
2
+ from setuptools import setup
3
+ except ImportError :
4
+ from distutils .core import setup
2
5
import os
3
6
import codecs
4
7
23
26
if os .path .isdir (os .path .join ('html5lib' , name )) and
24
27
not name .startswith ('.' ) and name != 'tests' ]
25
28
29
+ install_requires = ['six' ]
30
+ try :
31
+ from collections import OrderedDict
32
+ except ImportError :
33
+ install_requires .append ('ordereddict' )
34
+
26
35
current_dir = os .path .dirname (__file__ )
27
36
with codecs .open (os .path .join (current_dir , 'README.rst' ), 'r' , 'utf8' ) as readme_file :
28
37
with codecs .open (os .path .join (current_dir , 'CHANGES.rst' ), 'r' , 'utf8' ) as changes_file :
38
47
maintainer = 'James Graham' ,
39
48
maintainer_email = 'james@hoppipolla.co.uk' ,
40
49
packages = packages ,
41
- install_requires = [
42
- 'six' ,
43
- ],
50
+ install_requires = install_requires ,
44
51
)
You can’t perform that action at this time.
0 commit comments