Re: envbuilder setup for celery

0 views
Skip to first unread message

Jason Baker

unread,
Feb 16, 2010, 8:34:44 AM2/16/10
to celery-users, envbu...@googlegroups.com
On Feb 15, 8:23 am, Ask Solem <askso...@gmail.com> wrote:
> Nice. Looks like something I could use. Not sure what I would add yet.
> Do you have support for custom PyPI servers?

Not explicitly, but you can pass the options to setuptools. I would
modify the example to look like this:

index_url = <whatever>
[project]
parcels = 'django', 'celery'
requires = <whatever extra packages you want to install>
easy_install = '$CWD/bin/easy_install -i $index_url'

[[DEFAULT]]
python = '$CWD/bin/python'
branch = 'master'

[[django]]
checkout='svn co http://code.djangoproject.com/svn/django/trunk/
django'
setup='ln -s $CWD/django/django $CWD/lib/python2.6/site-packages'
update='svn up'

[[celery]]
checkout='git clone git://github.com/ask/celery.git'
setup = '$python setup.py develop -i $index_url'
update='git pull origin $branch'

[[demoproject]]
checkout='ln -s $CWD/celery/examples/pythonproject/demoapp $CWD/
demoproject'
setup = 'echo'
update = 'echo'

This will make the celery parcel fetch its dependencies from whatever
PyPI server you want to use. Also, if you have any extra packages
that you want to install (for instance, I'll sometimes install
ipython), you can alter the arguments that are passed to easy_install
to have it pull from your custom index.

I haven't tried this out, but it should work (aside from any bugs that
may be in it).

Thanks for the question. You're not the first person to ask this, so
I think this makes a good candidate for an example.

Reply all
Reply to author
Forward
0 new messages