APKBUILD examples:Python: Difference between revisions

From Alpine Linux
No edit summary
mNo edit summary
Line 2: Line 2:


<pre>
<pre>
...
depends="python"
makedepends="python-dev"
makedepends="python-dev"
...
...

Revision as of 17:08, 27 June 2011

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
}