mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-03-11 06:37:31 +00:00
Packages installing python3 site packages for python3 in version 3.x.y depend on python3~3.x. This automatically adds the required dependencies. Unit test cases have been added by reusing the `py3-foo-and-bar` test package. However, the path of that has been renamed to contain spaces to be extra sure the logic is safe in regrade to spaces in path names.
16 lines
352 B
Plaintext
16 lines
352 B
Plaintext
# Maintainer: Test user <user@example.com>
|
|
pkgname=py3-foo-and-bar
|
|
pkgver=1.0.0
|
|
pkgrel=0
|
|
pkgdesc="dummy package for test"
|
|
url="https://alpinelinux.org"
|
|
license="MIT"
|
|
builddir="$srcdir"
|
|
_sitedir=usr/lib/python3.9/site-packages
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"/$_sitedir/foo
|
|
touch "$pkgdir"/$_sitedir/foo/__init__.py
|
|
touch "$pkgdir"/$_sitedir/bar.py
|
|
}
|