[buildout] parts = python-setuptools [setuptools-download] recipe = slapos.recipe.build:download filename = setuptools-0.6c11-py2.7.egg url = http://pypi.python.org/packages/2.7/s/setuptools/${:filename} md5sum = fe1f997bc722265116870bc7919059ea [python-setuptools] # Hack to manually install setuptools outside of the Buildout environment. # It is useful in case of using things like "python setup.py test" in eggs # downloaded from source (so not using bildout magic). # To be able to use it, you should in your instance do an: # export PYTHONPATH=${:location} (defined in ${:environment}) location = ${buildout:parts-directory}/${:_buildout_section_name_} environment = export PATH=${python2.7:location}/bin:$PATH; export PYTHONPATH=${:location}; stop-on-error = true recipe = plone.recipe.command update = true command = ${:environment} (mkdir ${:location}; sh ${setuptools-download:location}/${setuptools-download:filename} --install-dir ${:location}) || (rm -fr ${:location}; exit 1)