mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 20:18:33 +08:00
Deprecate use_pickle flag (#7474)
This commit is contained in:
@@ -1,19 +1,5 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
import sys
|
||||
|
||||
CLOUDPICKLE_PATH = os.path.dirname(os.path.realpath(__file__))
|
||||
from ray.cloudpickle.cloudpickle_fast import * # noqa: F401, F403
|
||||
|
||||
if os.path.exists(os.path.join(CLOUDPICKLE_PATH, "..", "pickle5_files", "pickle5")):
|
||||
HAS_PICKLE5 = True
|
||||
else:
|
||||
HAS_PICKLE5 = False
|
||||
|
||||
if sys.version_info[:2] >= (3, 8) or HAS_PICKLE5:
|
||||
from ray.cloudpickle.cloudpickle_fast import *
|
||||
FAST_CLOUDPICKLE_USED = True
|
||||
else:
|
||||
from ray.cloudpickle.cloudpickle import *
|
||||
FAST_CLOUDPICKLE_USED = False
|
||||
|
||||
__version__ = '1.2.2.dev0'
|
||||
__version__ = "1.2.2.dev0"
|
||||
|
||||
Reference in New Issue
Block a user