Skip to content

Commit dae03f6

Browse files
committed
Comment the extras syntax to make it clearer what is going on
1 parent 8df408b commit dae03f6

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy