Is there any way to tell setuptools or distribute to require a package on a specific platform?
In my specific case, I\'m using readline
, which comes as par
from setuptools import setup
setup(
install_requires=(['pymsgbox', 'PyTweening>=1.0.1', 'Pillow', 'pyscreeze']
+ ["python3-xlib; sys_platform == linux"]
+ ["python-xlib; sys_platform == linux2"]
+ ["pyobjc-core; sys_platform == darwin"]
+ ["pyobjc; sys_platform == darwing"]
),
)
This will install speicific versions of libraries depending on whether its linux2
(for a linux system using python2
), linux
(for a linux system using python3
), darwin
(for a MacOS system)