APKBUILD examples:Python: Difference between revisions
(Created page with "Coming soon...") |
No edit summary |
||
| Line 1: | Line 1: | ||
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''. | |||
<pre> | |||
... | |||
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 | |||
} | |||
</pre> | |||
Revision as of 07:24, 24 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.
...
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
}