Commit 1858ee4
authored
Allow drivers requiring extended attributes to use any xattr implementation (#194)
There are two reasonably popular implementations of "xattr" on PyPI:
- xattr
- pyxattr
They both provide the same importable name, "import xattr", but provide
different APIs once you do import it. There can only be one installed to
any given python environment. Detect which one is available and utilize
its API, rather than assume that the one preferred by this package's
install_requires is the one actually installed in the current
environment.
This aids people in manually crafting environments containing a mix of
packages if any of them require pyxattr specifically. Unfortunately PyPA
metadata standards do not support boolean "OR" dependency operators, so
this is primarily useful to people installing software using a
non-python package manager (such as a linux distro package manager).
Signed-off-by: Eli Schwartz <[email protected]>1 parent 8f652b2 commit 1858ee4
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
80 | 85 | | |
81 | 86 | | |
82 | 87 | | |
| |||
0 commit comments