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

Commit4592785

Browse files
committed
Merge branch 'graingert-patch-2'
2 parents0900c55 +2253d39 commit4592785

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

‎setup.py

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
fromdistutils.command.build_pyimportbuild_pyas_build_py
1111
fromsetuptools.command.sdistimportsdistas_sdist
12+
importpkg_resources
13+
importlogging
1214
importos
1315
importsys
1416
fromosimportpath
@@ -68,8 +70,23 @@ def _stamp_version(filename):
6870
print("WARNING: Couldn't find version line in file %s"%filename,file=sys.stderr)
6971

7072
install_requires= ['gitdb >= 0.6.4']
71-
ifsys.version_info[:2]< (2,7):
72-
install_requires.append('ordereddict')
73+
extras_require= {
74+
':python_version == "2.6"': ['ordereddict'],
75+
}
76+
77+
try:
78+
if'bdist_wheel'notinsys.argv:
79+
forkey,valueinextras_require.items():
80+
ifkey.startswith(':')andpkg_resources.evaluate_marker(key[1:]):
81+
install_requires.extend(value)
82+
exceptException:
83+
logging.getLogger(__name__).exception(
84+
'Something went wrong calculating platform specific dependencies, so '
85+
"you're getting them all!"
86+
)
87+
forkey,valueinextras_require.items():
88+
ifkey.startswith(':'):
89+
install_requires.extend(value)
7390
# end
7491

7592
setup(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp