Am 21.11.2007 um 16:57 schrieb Florian Apolloner:

> Does this mean that I would need to run setup.py install after every
> checkout, otherwise setuptools couldn't track it or am I mistaken?

No, you don't need to install Django over and over again since it's  
much easier to use the "develop" command for tracking svn changes.  
"python setup.py develop" tells setuptools to create a link in the  
site-packages directory to the current directory with the Django  
checkout.

So the theoretical process for a fresh Django installation with  
setuptools would be:

$  svn co http://code.djangoproject.com/svn/django/trunk/ django_src
$ cd django_src
$ python setup.py develop
...
Creating /Library/Python/2.5/site-packages/Django.egg-link (link to .)
Adding Django 0.97.pre-r6704 to easy-install.pth file
Installed /Users/Jannis/Code/django_src
...

Updating Django is easy:

$ cd django_src
$ svn update
U    django/contrib/admin/templatetags/admin_list.py
U    django/template/defaultfilters.py
U    tests/regressiontests/templates/filters.py
Updated to revision 6708.
$ sudo python setup.py develop
...
Creating /Library/Python/2.5/site-packages/Django.egg-link (link to .)
Removing Django 0.97.pre-r6704 from easy-install.pth file
Adding Django 0.97.pre-r6706 to easy-install.pth file
Installed /Users/Jannis/Code/django_src
...

Direct installation of the current developer snapshot could be easy  
as, btw:

easy_install Django==dev


Best,
Jannis


1: 
http://peak.telecommunity.com/DevCenter/setuptools#develop-deploy-the-project-source-in-development-mode

> Best, Florian
>
> On 21 Nov., 16:39, Jannis Leidel <[EMAIL PROTECTED]> wrote:
>> Am 21.11.2007 um 13:54 schrieb Florian Apolloner:
>>
>>> Nice idea, but most (afaik) people are tracking the django-svn tree,
>>> so we might need another way to check the version requirements? Or  
>>> is
>>> there another way to make django detectable by setuptools,  
>>> although it
>>> is a svn checkout?
>>
>> Good question! The easy answer is setuptools' feature to manage
>> "Continuous Releases" using subversion [1]. Setuptools would install
>> Django as a developement snapshot as long something like this is in
>> Django's setup.cfg:
>>
>>      [egg_info]
>>      tag_build = .pre
>>      tag_svn_revision = 1
>>
>> This tells setuptools to generate version numbers like 0.97.pre-r6706
>> which are then superseded by the 0.97 release, once it's released.  
>> You
>> can of couse use dev snapshots as a dependency of a specific Django
>> app by writing in the setup.py of the app:
>>
>>     install_requires = ['Django >= 0.97.pre-r6706,==dev',]
>>
>> This tells setuptools to install Django either by using a subversion
>> checkout or the newest release if available (if necessary).
>>
>> Best,
>> Jannis
>>
>> 1:http://peak.telecommunity.com/DevCenter/setuptools#managing-continuou 
>> ...


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

Reply via email to