I have a requirements.txt file that specifies an optional dependency that fails when running on PYPY.
I know you can make lines in the requirements.txt file conditional on Python version, or operating system. For instance:
Following dependencies will only be installed for Python 3.5+ and on Win32 respectively
black;python_version > '3.5'
colorama;platform_system=="Windows"
However, I'm looking for a way to only install a package if the platform.python_implementation() is CPython, or not PYPY.