MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / get_version

Function get_version

python/setup.py:44–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43
44def get_version():
45 import importlib.util
46
47 spec = importlib.util.spec_from_file_location(
48 "version", os.path.join("oneflow", "version.py")
49 )
50 m = importlib.util.module_from_spec(spec)
51 spec.loader.exec_module(m)
52 return m.__version__
53
54
55REQUIRED_PACKAGES = [

Callers 1

setup.pyFile · 0.85

Calls 2

joinMethod · 0.80
exec_moduleMethod · 0.80

Tested by

no test coverage detected