dev getting-started - missing django_evolution step

2009-10-22 Thread Chris Clark

I'm setting up a new dev environment for some hacking and I'm following:


http://www.reviewboard.org/docs/codebase/dev/getting-started/#gettingstarted

After using git to get the reviewboard source and using 
./contrib/internal/prepare-dev.py I get errors about django_evolution. 
django_evolution is a pre-requisite that is not handled when djblets 
(which auto installs almost everything else) is installed/setup.

Here is what I did to deal with that:

svn checkout http://django-evolution.googlecode.com/svn/trunk/
django-evolution
cd django-evolution
sed 's/distutils.core/setuptools/' setup.py  setuptools_setup.py
python setuptools_setup.py develop
cd ..


Could http://www.reviewboard.org/docs/codebase/dev/getting-started/ be 
updated with something like the above, just after the djblets section 
before the Review Board section?

Thanks!

Chris


--~--~-~--~~~---~--~~
Want to help the Review Board project? Donate today at
http://www.reviewboard.org/donate/
Happy user? Let us know at
http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Re: dev getting-started - missing django_evolution step

2009-10-22 Thread Chris Clark

Chris Clark wrote:
 I'm setting up a new dev environment for some hacking and I'm following:

 
 http://www.reviewboard.org/docs/codebase/dev/getting-started/#gettingstarted

 After using git to get the reviewboard source and using 
 ./contrib/internal/prepare-dev.py I get errors about django_evolution. 
 django_evolution is a pre-requisite that is not handled when djblets 
 (which auto installs almost everything else) is installed/setup.

 Here is what I did to deal with that:

 svn checkout http://django-evolution.googlecode.com/svn/trunk/
 django-evolution
 cd django-evolution
 sed 's/distutils.core/setuptools/' setup.py  setuptools_setup.py
 python setuptools_setup.py develop
 cd ..


 Could http://www.reviewboard.org/docs/codebase/dev/getting-started/ be 
 updated with something like the above, just after the djblets section 
 before the Review Board section?
   

Also I needed paramiko and pytz, e.g.:

sudo apt-get install python-paramiko python-tz

I had an issue where the default setup from 
./contrib/internal/prepare-dev.py did NOT work. Specifically it appeared 
to work but when running the server (e.g. via 
./contrib/internal/devserver.sh) a manually syncdb run was required. So 
I made this change:

diff --git a/contrib/internal/prepare-dev.py 
b/contrib/internal/prepare-dev.py
index 60fb740..be4b320 100755
--- a/contrib/internal/prepare-dev.py
+++ b/contrib/internal/prepare-dev.py
@@ -81,8 +81,9 @@ def main():

 install_media(site)

-print Synchronizing database...
-site.sync_database(allow_input=True)
+#print Synchronizing database...
+#site.sync_database(allow_input=True)
+print 'now issue reviewboard/manage.py syncdb'

 print
 print Your Review Board tree is ready for development.


For some reason, even though PIL is installed (e.g. import Image 
works) and the version is 1.1.6, the dbjlets stage appears to download 
an egg for PIL (version 1.1.6 that is already installed).

I also had an issue where my Pygments version (0.9) was not high enough 
and this prevented the SCM tools list from being populated (I did a 
quick easy_install pygments as a fix and installed 1.1.1).

Hope this helps someone else.

Chris


--~--~-~--~~~---~--~~
Want to help the Review Board project? Donate today at
http://www.reviewboard.org/donate/
Happy user? Let us know at
http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---