Installing Django from GIT/Subversion - package dependency in virtual environment

18 views
Skip to first unread message

Mateusz Marzantowicz

unread,
Feb 20, 2012, 7:36:16 AM2/20/12
to django...@googlegroups.com
Hello,

I'm having a problem with managing Django installation which was done from git repository
(might be svn as well) in clean virtual environment. The problem is that when I install some
other package via pip which has a Django as a dependency, it doesn't find my django installation
and then downloads official release. I really need only one Django installation in my virtualenv,
the one from git :) It is more related to how pip works but does anyone has any idea how to do it the right way?


Thanks,
Mateusz Marzantowicz

Denis Darii

unread,
Feb 20, 2012, 7:53:26 AM2/20/12
to django...@googlegroups.com
Do you mean django-trunk installation?

If so, I use this in my requirements.txt:
-e svn+http://code.djangoproject.com/svn/django/trunk/#egg=django-trunk
or directly with pip:

$ pip install -e svn+http://code.djangoproject.com/svn/django/trunk/#egg=django-trunk

Hope it helps.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
This e-mail and any file transmitted with it is intended only for the person or entity to which is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.

Mateusz Marzantowicz

unread,
Feb 20, 2012, 10:07:35 AM2/20/12
to django...@googlegroups.com
Yes, it works!

Although I was previously installing Django according to docs at https://docs.djangoproject.com/en/1.3/topics/install/#installing-development-version , your method works perfectly so far.

I understand that keep in sync with trunk/master is as easy as invoking git pull (svn up) and then setup.py install in src/django directory in virtualenv root?


Mateusz Marzantowicz

Denis Darii

unread,
Feb 20, 2012, 10:34:37 AM2/20/12
to django...@googlegroups.com
Yes Mateusz, you understood right.

shacker

unread,
Feb 21, 2012, 11:11:17 AM2/21/12
to django...@googlegroups.com
Even easier, just 

pip install django

or in requirements.txt, simply:

Django

To upgrade later:

pip install --upgrade django

./s
Reply all
Reply to author
Forward
0 new messages