| 1 |
import tarfile |
| 2 |
|
| 3 |
|
| 4 |
class SafetyError(tarfile.TarError): |
| 5 |
def __init__(self, msg, *args, **kw): |
| 6 |
msg = f"Error with archive. {msg}" |
| 7 |
super().__init__(msg) |
| 8 |
|
| 9 |
|
| 10 |
class CaseInsensitiveFileSystemError(OSError): |
| 11 |
def __init__(self): |
| 12 |
message = """\ |
| 13 |
Cannot extract package to a case-insensitive file system. Your install |
| 14 |
destination does not differentiate between upper and lowercase characters, and |
| 15 |
this breaks things. Try installing to a location that is case-sensitive. Windows |
| 16 |
drives are usually the culprit here - can you install to a native Unix drive, or |
| 17 |
turn on case sensitivity for this (Windows) location? |
| 18 |
""" |
| 19 |
super().__init__(message) |