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).
()
| 112 | |
| 113 | |
| 114 | def 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 | |
| 125 | def get_version_string(init_file): |