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).
()
| 108 | |
| 109 | |
| 110 | def 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 | |
| 121 | def get_version_string(init_file): |