Skip to content

Commit 5bcce44

Browse files
committed
main/python-numpy: install static libs, split devel
1 parent 5fd38f5 commit 5bcce44

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

main/python-numpy-devel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-numpy

main/python-numpy/template.py

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pkgname = "python-numpy"
22
pkgver = "2.3.0"
3-
pkgrel = 0
3+
pkgrel = 1
44
build_style = "python_pep517"
55
make_build_args = []
66
hostmakedepends = [
@@ -92,11 +92,22 @@ def check(self):
9292

9393
def post_install(self):
9494
self.install_license("LICENSE.txt")
95-
# remove static libs
96-
self.uninstall(
97-
f"usr/lib/python{self.python_version}/site-packages/numpy/*/lib/lib*.a",
98-
glob=True,
99-
)
95+
96+
97+
@subpackage("python-numpy-devel")
98+
def _(self):
99+
def install():
100+
self.take(
101+
f"usr/lib/python{self.parent.python_version}/site-packages/numpy/*/include"
102+
)
103+
self.take(
104+
f"usr/lib/python{self.parent.python_version}/site-packages/numpy/*/lib"
105+
)
106+
self.take(
107+
f"usr/lib/python{self.parent.python_version}/site-packages/numpy/*/src"
108+
)
109+
110+
return install
100111

101112

102113
@subpackage("python-numpy-tests")

0 commit comments

Comments
 (0)