Skip to content

Commit 0c52eef

Browse files
authored
Use platform_python_implementation marker instead of implementation_name
Use platform_python_implementation because it's implemented on older pip/Python versions
1 parent 4742c7f commit 0c52eef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

example/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ from setuptools import setup
1515
setup(
1616
...,
1717
install_requires=[
18-
"brotli; implementation_name == 'cpython'",
19-
"brotlicffi; implementation_name != 'cpython'"
18+
"brotli; platform_python_implementation == 'CPython'",
19+
"brotlicffi; platform_python_implementation != 'CPython'"
2020
]
2121
)
2222
```
2323

2424
```
2525
# requirements.txt:
26-
brotli; implementation_name == 'cpython'
27-
brotlicffi; implementation_name != 'cpython'
26+
brotli; platform_python_implementation == 'CPython'
27+
brotlicffi; platform_python_implementation != 'CPython'
2828
```
2929

3030
...then you can import the bindings in your project like so:

0 commit comments

Comments
 (0)