diff options
| author | Jeffery To <jeffery.to@gmail.com> | 2019-03-27 03:33:16 +0800 |
|---|---|---|
| committer | Jeffery To <jeffery.to@gmail.com> | 2019-03-27 03:44:31 +0800 |
| commit | e436e73f1c2704e9aaac4d01c6a8b1ce640068a1 (patch) | |
| tree | bf92f2ed43cd3b57c739561a998e7a38d03a1387 /lang/python/python3 | |
| parent | 8d347f919759661b571afbc1adc1e19d771c27fc (diff) | |
python,python3: Use only target package data for Build/InstallDev
This changes Build/InstallDev for both Python 2 and 3 to only copy files
from target Python, not from host Python, since InstallDev files are
used for target packages to link to other target packages.
In particular, usr/lib/python{2.7,3.7}/_sysconfigdata.py holds system
configuration data generated at build time, and is different for target
Python and host Python.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python3')
| -rw-r--r-- | lang/python/python3/Makefile | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index 0c3c82ca9..8e6a19be3 100644 --- a/lang/python/python3/Makefile +++ b/lang/python/python3/Makefile @@ -14,7 +14,7 @@ PYTHON_VERSION:=$(PYTHON3_VERSION) PYTHON_VERSION_MICRO:=$(PYTHON3_VERSION_MICRO) PKG_NAME:=python3 -PKG_RELEASE:=7 +PKG_RELEASE:=8 PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO) PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz @@ -198,23 +198,17 @@ define Build/Compile endef define Build/InstallDev - $(INSTALL_DIR) $(1)/usr/include/ $(1)/usr/lib/ - $(INSTALL_DIR) $(1)/usr/lib/python$(PYTHON_VERSION)/ - $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig $(CP) \ $(PKG_INSTALL_DIR)/usr/include/python$(PYTHON_VERSION) \ $(1)/usr/include/ $(CP) \ - $(HOST_PYTHON3_LIB_DIR) \ + $(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON_VERSION) \ $(PKG_INSTALL_DIR)/usr/lib/libpython$(PYTHON_VERSION).so* \ $(1)/usr/lib/ $(CP) \ - $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/python3.pc \ - $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/python-$(PYTHON3_VERSION).pc \ + $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/python*.pc \ $(1)/usr/lib/pkgconfig - $(CP) \ - $(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON_VERSION)/config-$(PYTHON_VERSION) \ - $(1)/usr/lib/python$(PYTHON_VERSION)/ endef PYTHON3_BASE_LIB_FILES:= \ |
