The configure-make-make-install recipe automates installation of configure-based source distribution into buildouts.
Release History
1.0 (2006-11-22)
Initial release.
Detailed Documentation
We have an archive with a demo foo tar ball:
>>> ls(distros) - foo.tgz
Let’s update a sample buildout to installs it:
>>> write('buildout.cfg',
... """
... [buildout]
... parts = foo
...
... [foo]
... recipe = zc.recipe.cmmi
... url = file://%s/foo.tgz
... """ % distros)
We used the url option to specify the location of the archive.
If we run the buildout, the configure script in the archive is run. It creates a make file which is also run:
>>> print system('bin/buildout'),
buildout: Installing foo
configuring foo --prefix=/sample-buildout/parts/foo
echo building foo
building foo
echo installing foo
installing foo
The recipe also creates the parts directory:
>>> ls(sample_buildout, 'parts') d foo
If we run the buildout again, the update method will be called, which does nothing:
>>> print system('bin/buildout'),
buildout: Updating foo
You can supply extra configure options:
>>> write('buildout.cfg', ... """ ... [buildout] ... parts = foo ... ... [foo] ... recipe = zc.recipe.cmmi ... url = file://%s/foo.tgz ... extra_options = -a -b c ... """ % distros)>>> print system('bin/buildout'), buildout: Uninstalling foo buildout: Installing foo configuring foo --prefix=/sample-buildout/parts/foo -a -b c echo building foo building foo echo installing foo installing foo
The recipe sets the location option, which can be read by other recipes, to the location where the part is installed:
>>> cat('.installed.cfg')
... # doctest: +ELLIPSIS
[buildout]
installed_develop_eggs =
parts = foo
<BLANKLINE>
[foo]
__buildout_installed__ = /sample-buildout/parts/foo
...
extra_options = -a -b c
location = /sample-buildout/parts/foo
...
Download
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file zc.recipe.cmmi-1.0.tar.gz.
File metadata
- Download URL: zc.recipe.cmmi-1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf67b027c7e638b0f45a785fa850b1dbeca54c6eaf40fb46d03bcdcd3f0b442d
|
|
| MD5 |
e05b23dcfa36ed185e9875ead786a882
|
|
| BLAKE2b-256 |
0f588cff77b72c7d11e4278e9826ea77de4f30c310d427667a2ddca868fc6d97
|