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

Commitdae03f6

Browse files
committed
Comment the extras syntax to make it clearer what is going on
1 parent8df408b commitdae03f6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎setup.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,23 @@
5858
'six',
5959
],
6060
extras_require={
61+
# A empty extra that only has a conditional marker will be
62+
# unconditonally installed when the condition matches.
6163
":python_version == '2.6'": ["ordereddict"],
64+
65+
# A conditional extra will only install these items when the extra is
66+
# requested and the condition matches.
6267
"lxml:python_implementation == 'CPython'": ["lxml"],
68+
69+
# Standard extras, will be installed when the extra is requested.
6370
"genshi": ["genshi"],
6471
"datrie": ["datrie"],
6572
"charade": ["charade"],
73+
74+
# The all extra combines a standard extra which will be used anytime
75+
# the all extra is requested, and it extends it with a conditional
76+
# extra that will be installed whenever the condition matches and the
77+
# all extra is requested.
6678
"all": ["genshi","datrie","charade"],
6779
"all:python_implementation == 'CPython'": ["lxml"],
6880
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp