P
P
Pavel Zagrebelin2012-08-12 01:18:10
git
Pavel Zagrebelin, 2012-08-12 01:18:10

Git submodule or pip requirements?

There is a git repository with a django site, there is another repo with a frequently-changed application. Changing the application leads to a change in the site code, all this is spinning in virtualenv. What is the best way to arrange dependencies: register the repository in requirements.txt and update via pip install --upgrade -r req.txt, or via git submodules and give the update to the farm git submodule update? Is there any fundamental difference between the two approaches?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vyacheslav Slinko, 2012-08-12
@KeepYourMind

I'm from the php world, but still. Previously, they used a submodule - everything would be fine, but there are situations when the history changes in a dependent repository and git cannot find the required commit. Now we use the package manager - there seems to be no big problems.

P
pfalcon, 2012-08-12
@pfalcon

Obviously, the pip solution is a "Python-world" solution. While the git submodule is an adhoc solution ("hack") based on the features of the specific VCS that is currently in use.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question