Replacing dependency with custom forks using pip

Viewed 1826

I am building an app that uses photologue and a few other packages that have photologue as a dependency (e.g., cmsplugin-photologue). However, I need to use a modified version of photologue hosted on github. All this will then be deployed on Heroku, which means that installations of dependencies is done solely through a requirements.txt file.

In principle this is done quite easily: I can just add the repository to the requirements file as described here and it will be installed. The problem is that the original photologue is installed too and ends up the one being used.

So the general question is: Using pip, how can I replace an application that is a dependency of several apps with my own version of that application?

2 Answers
Related