From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Tue, 18 Feb 2014 22:56:55 +0100 Subject: [Buildroot] [PATCH v2 06/20] python3: add config directory symbolic link In-Reply-To: <1392756013-27757-7-git-send-email-thomas.petazzoni@free-electrons.com> (Thomas Petazzoni's message of "Tue, 18 Feb 2014 21:39:59 +0100") References: <1392756013-27757-1-git-send-email-thomas.petazzoni@free-electrons.com> <1392756013-27757-7-git-send-email-thomas.petazzoni@free-electrons.com> Message-ID: <87ob243x08.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Thomas" == Thomas Petazzoni writes: > From: "kpa_info at yahoo.fr" > When using host python to install an external module, the setup tool > look for some files in python3.3/config/. The python3 package config > directory is called config-3.3m. This is why we need to alias config > to config-3.3m. > [Thomas: use PYTHON3_VERSION_MAJOR instead of hardcoding 3.3, update > commit title.] > Signed-off-by: Patrick Gerber > Signed-off-by: Thomas Petazzoni > --- > package/python3/python3.mk | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > diff --git a/package/python3/python3.mk b/package/python3/python3.mk > index ba72e75..d98ca38 100644 > --- a/package/python3/python3.mk > +++ b/package/python3/python3.mk > @@ -163,7 +163,16 @@ define HOST_PYTHON3_INSTALL_SYMLINK > ln -fs python3 $(HOST_DIR)/usr/bin/python > endef > -HOST_PYTHON3_POST_INSTALL_HOOKS += HOST_PYTHON3_INSTALL_SYMLINK > +# Alias the python/config-m to python/config > +# This is needed when installing an external python module, because > +# the setup is looking for files in python/config/ > +define HOST_PYTHON3_INSTALL_CONFIG_SYMLINK > + ln -fs config-$(PYTHON3_VERSION_MAJOR)m $(HOST_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOE)config Ehh, shouldn't this be ..$(HOST_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/config? As you didn't notice, perhaps the symlink isn't really needed after all? -- Bye, Peter Korsgaard