Commit 920ddce
authored
Allow to setup package with older python3 (#60)
For example with Python 3.7 without this patch its failing with:
```
File "/tmp/pip-req-build-mkwq4yyi/setup.py", line 4, in <module>
from importlib.metadata import version, PackageNotFoundError
ModuleNotFoundError: No module named 'importlib.metadata'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-req-build-mkwq4yyi/
```
This also remove unused import `os` and `re`1 parent 9f0f049 commit 920ddce
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | | - | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
0 commit comments