Turns out that as well as a dependency_links
line, I also needed to add the name of the package in an install_requires
line, like so:
dependency_links = ['git+https://github.com/liamzebedee/scandir.git#egg=scandir-0.1'],
install_requires = ['scandir'],