MCPcopy Create free account
hub / github.com/StackStorm/st2 / apply_vagrant_workaround

Function apply_vagrant_workaround

contrib/runners/python_runner/dist_utils.py:110–118  ·  view source on GitHub ↗

Function which detects if the script is being executed inside vagrant and if it is, it deletes "os.link" attribute. Note: Without this workaround, setup.py sdist will fail when running inside a shared directory (nfs / virtualbox shared folders).

()

Source from the content-addressed store, hash-verified

108
109
110def apply_vagrant_workaround():
111 """
112 Function which detects if the script is being executed inside vagrant and if it is, it deletes
113 "os.link" attribute.
114 Note: Without this workaround, setup.py sdist will fail when running inside a shared directory
115 (nfs / virtualbox shared folders).
116 """
117 if os.environ.get("USER", None) == "vagrant":
118 del os.link
119
120
121def get_version_string(init_file):

Callers 1

setup.pyFile · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected