36
36
define build-numpy
37
37
$$(foreach target,$$(TARGETS-$1),$$(eval $$(call build-numpy-target,$$(target),$1)))
38
38
39
- build/$1/packages/numpy: downloads/numpy-$(NUMPY_VERSION).tgz
39
+ build/$1/packages/numpy: pip downloads/numpy-$(NUMPY_VERSION).tgz
40
40
# Unpack numpy sources
41
41
mkdir -p build/$1/packages/numpy
42
42
tar zxf downloads/numpy-$(NUMPY_VERSION).tgz --strip-components 1 -C build/$1/packages/numpy
@@ -50,12 +50,12 @@ ifeq ($1,macOS)
50
50
# Just install the source as-is into the dist/app_packages directory
51
51
# Then clean out all the binary artefacts
52
52
53
- dist/app_packages/numpy: dist/app_packages build/$1 /packages/numpy
54
- cd build/$1 /packages/numpy && \
53
+ dist/app_packages/numpy: pip dist/app_packages build/macOS /packages/numpy
54
+ cd build/macOS /packages/numpy && \
55
55
$(NUMPY_CONFIG) $(HOST_PIP) install --target $(PROJECT_DIR)/dist/app_packages .
56
- find build/$1 /packages/numpy -name "*.so" -exec rm {} \;
56
+ find build/macOS /packages/numpy -name "*.so" -exec rm {} \;
57
57
58
- numpy-$1 : dist/app_packages/numpy
58
+ numpy-macOS : dist/app_packages/numpy
59
59
60
60
else
61
61
# For all other platforms, run the numpy build for each target architecture
75
75
$(foreach os,$(OS),$(eval $(call build-numpy,$(os))))
76
76
77
77
# Main entry point
78
- numpy: pip $(foreach os,$(OS),numpy-$(os))
78
+ numpy: $(foreach os,$(OS),numpy-$(os))
0 commit comments