Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite76c567

Browse files
committed
setup.py: Require ordereddict for Python 2.6
1 parent7cce65b commite76c567

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

‎setup.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
fromdistutils.coreimportsetup
1+
try:
2+
fromsetuptoolsimportsetup
3+
exceptImportError:
4+
fromdistutils.coreimportsetup
25
importos
36
importcodecs
47

@@ -23,6 +26,12 @@
2326
ifos.path.isdir(os.path.join('html5lib',name))and
2427
notname.startswith('.')andname!='tests']
2528

29+
install_requires= ['six']
30+
try:
31+
fromcollectionsimportOrderedDict
32+
exceptImportError:
33+
install_requires.append('ordereddict')
34+
2635
current_dir=os.path.dirname(__file__)
2736
withcodecs.open(os.path.join(current_dir,'README.rst'),'r','utf8')asreadme_file:
2837
withcodecs.open(os.path.join(current_dir,'CHANGES.rst'),'r','utf8')aschanges_file:
@@ -38,7 +47,5 @@
3847
maintainer='James Graham',
3948
maintainer_email='james@hoppipolla.co.uk',
4049
packages=packages,
41-
install_requires=[
42-
'six',
43-
],
50+
install_requires=install_requires,
4451
)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp