PROJECT_MOVED -> https://lab.nexedi.com/nexedi/slapos
[slapos.git] / component / python-setuptools / buildout.cfg
1 [buildout]
2 parts = python-setuptools
3
4 [setuptools-download]
5 recipe = hexagonit.recipe.download
6 download-only = true
7 package_suffix = setuptools-18.4
8 filename = ${:package_suffix}.tar.gz
9 url = https://pypi.python.org/packages/source/s/setuptools/${:filename}
10 md5sum = 214c6c43bd7035e870c1beab402c48e7
11 mode = 0644
12
13 [python-setuptools]
14 # Hack to manually install setuptools outside of the Buildout environment.
15 # It is useful in case of using things like "python setup.py test" in eggs
16 # downloaded from source (so not using bildout magic).
17 # To be able to use it, you should in your instance do an:
18 # export PYTHONPATH=${:location} (defined in ${:environment})
19 location = ${buildout:parts-directory}/${:_buildout_section_name_}
20 pythonpath = ${:location}/${setuptools-download:package_suffix}
21 environment = export PATH=${python2.7:location}/bin:$PATH; export PYTHONPATH=${:pythonpath};
22 stop-on-error = true
23 recipe = plone.recipe.command
24 update = true
25 # chmod is a hack, but the mode of hexagonit.recipe.download above didn't worked yet (there was new version recently)
26 command = ${:environment} (mkdir ${:location}; cd ${:location} && tar -xzvf ${setuptools-download:location}/${setuptools-download:filename} && cd ${:pythonpath} && ${buildout:executable} setup.py build) || (rm -fr ${:location}; exit 1)