We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48c149c commit 4572ffdCopy full SHA for 4572ffd
setup.py
@@ -68,8 +68,23 @@ def _stamp_version(filename):
68
print("WARNING: Couldn't find version line in file %s" % filename, file=sys.stderr)
69
70
install_requires = ['gitdb >= 0.6.4']
71
-if sys.version_info[:2] < (2, 7):
72
- install_requires.append('ordereddict')
+extras_require = {
+ ':python_version == "2.6"': ['ordereddict'],
73
+}
74
+
75
+try:
76
+ if 'bdist_wheel' not in sys.argv:
77
+ for key, value in extras_require.items():
78
+ if key.startswith(':') and pkg_resources.evaluate_marker(key[1:]):
79
+ install_requires.extend(value)
80
+except Exception:
81
+ logging.getLogger(__name__).exception(
82
+ 'Something went wrong calculating platform specific dependencies, so '
83
+ "you're getting them all!"
84
+ )
85
86
+ if key.startswith(':'):
87
88
# end
89
90
setup(
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments