Describe the bug
When built/installed against Python 3.5 or later, when scandir is available in the standard library, graphite-web still depends on the third-party library.
To Reproduce
Build/install graphite-web under Python 3.5 or later.
Expected behavior
The third-party scandir is only pulled in when using Python older than 3.5.
Screenshots
N/A
Environment (please complete the following information):
OS flavor: FreeBSD
Graphite-web version: 1.1.8
Django/Python version: 3.5, 3.6, 3.7, 3.8, 3.9
Setup type: From source while package building from the ports tree
Describe the bug When built/installed against Python 3.5 or later, when
scandir
is available in the standard library, graphite-web still depends on the third-party library.To Reproduce Build/install graphite-web under Python 3.5 or later.
Expected behavior The third-party
scandir
is only pulled in when using Python older than 3.5.Screenshots N/A
Environment (please complete the following information):
Additional context FreeBSD ports bug 256272