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

Function apply_vagrant_workaround

scripts/dist_utils.py:114–122  ·  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

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

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected