APKBUILD examples:Python: Difference between revisions
m (added to Development Category) |
Dubiousjim (talk | contribs) (Category:Python) |
||
| Line 16: | Line 16: | ||
</pre> | </pre> | ||
[[Category:Development]] | [[Category:Development]] [[Category:Python]] | ||
Revision as of 07:46, 12 March 2012
A lot of Python packages use the distutils framework. This mean that the build() and the package() section looks a bit different compared to an application which uses make.
depends="python"
makedepends="python-dev"
...
build() {
cd "$_builddir"
python setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}