I’ve had some success using URL dependency syntax from PEP 508 20. I had to commit to a specific python version and architecture, though. It’s fine in my case, I know the environment where the package will be used. I’ve looked for a way to leave out the environment spec, but haven’t found anything.
Example entry in install_requires: "torch @ https://download.pytorch.org/whl/cpu/torch-1.3.1%2Bcpu-cp36-cp36m-linux_x86_64.whl"
The links can be found here: https://download.pytorch.org/whl/torch_stable.html 96.