Skip to content

Commit cb58b7c

Browse files
committed
Use the platform.python_implementation because it's the most compat
See <pypa/packaging#72 (comment)> for a discussion of the various setuptools different aliases support. This means we don't work with 20.2 to 20.6 (released mid-Feb till late-Mar 2016).
1 parent d999875 commit cb58b7c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

requirements-optional.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ charade
1010

1111
# lxml is supported with its own treebuilder ("lxml") and otherwise
1212
# uses the standard ElementTree support
13-
lxml ; platform_python_implementation == 'CPython'
13+
lxml ; platform.python_implementation == 'CPython'
1414

1515
# DATrie can be used in place of our Python trie implementation for
1616
# slightly better parsing performance.
17-
datrie ; platform_python_implementation == 'CPython'
17+
datrie ; platform.python_implementation == 'CPython'
1818

1919
# Can be used to force attributes to be serialized in alphabetical
2020
# order.

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565

6666
# A conditional extra will only install these items when the extra is
6767
# requested and the condition matches.
68-
"datrie:platform_python_implementation == 'CPython'": ["datrie"],
69-
"lxml:platform_python_implementation == 'CPython'": ["lxml"],
68+
"datrie:platform.python_implementation == 'CPython'": ["datrie"],
69+
"lxml:platform.python_implementation == 'CPython'": ["lxml"],
7070

7171
# Standard extras, will be installed when the extra is requested.
7272
"genshi": ["genshi"],
@@ -77,6 +77,6 @@
7777
# extra that will be installed whenever the condition matches and the
7878
# all extra is requested.
7979
"all": ["genshi", "charade"],
80-
"all:platform_python_implementation == 'CPython'": ["datrie", "lxml"],
80+
"all:platform.python_implementation == 'CPython'": ["datrie", "lxml"],
8181
},
8282
)

0 commit comments

Comments
 (0)