MCPcopy Index your code
hub / github.com/ray-project/ray / SetupSpec

Class SetupSpec

python/setup.py:78–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77
78class SetupSpec:
79 def __init__(
80 self, type: SetupType, name: str, description: str, build_type: BuildType
81 ):
82 self.type: SetupType = type
83 self.name: str = name
84 version = find_version("ray", "_version.py")
85 # add .dbg suffix if debug mode is on.
86 if build_type == BuildType.DEBUG:
87 self.version: str = f"{version}+dbg"
88 elif build_type == BuildType.ASAN:
89 self.version: str = f"{version}+asan"
90 elif build_type == BuildType.TSAN:
91 self.version: str = f"{version}+tsan"
92 elif build_type == BuildType.DEPS_ONLY:
93 self.version: str = DEPS_ONLY_VERSION
94 else:
95 self.version = version
96 self.description: str = description
97 self.build_type: BuildType = build_type
98 self.files_to_include: list = []
99 self.install_requires: list = []
100 self.extras: dict = {}
101
102 def get_packages(self):
103 if self.type == SetupType.RAY and self.build_type != BuildType.DEPS_ONLY:
104 return setuptools.find_packages(exclude=("tests", "*.tests", "*.tests.*"))
105 else:
106 return []
107
108
109build_type = os.getenv("RAY_DEBUG_BUILD")

Callers 1

setup.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…