From 19908c01b8cca28a38e1f3874096d0cc6c504b0f Mon Sep 17 00:00:00 2001 From: Robert Nishihara Date: Sun, 13 Jan 2019 23:55:59 -0800 Subject: [PATCH] Use environment markers to only install faulthandler in Python < 3.3. (#3764) --- python/setup.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/setup.py b/python/setup.py index 41d04fb85..66daea19b 100644 --- a/python/setup.py +++ b/python/setup.py @@ -146,11 +146,9 @@ requires = [ # The six module is required by pyarrow. "six >= 1.0.0", "flatbuffers", + "faulthandler;python_version<'3.3'", ] -if sys.version_info < (3, 0): - requires.append("faulthandler") - setup( name="ray", version=find_version("ray", "__init__.py"),