I am trying to create a python package that depends on another package hosted in a private repo. The setup.py
looks like this:
setup(
name="parasol",
version="2.18.1",
...
install_requires=[
...
"pyGSO @ git+https://dev.azure.com/.../pyGSO@Main",
],
)
This works fine. Unfortunately, I now need to install it in an environment which has no access to the private repo. To work around that I am installing pyGSO manually in a separate build step, and then running this. But of course, as soon as it gets to the pyGSO requirement here it fails since it has no access to check the repo. What can I do?
Ideas I had, if anyone knows how to implement them:
- Add a minimum version indicator to the requirement, so that if I manually install a newer version it won't try to access the unavailable repo
- Somehow have it skip this dependency if it already is installed