[Buildroot] [PATCH] python: fix interpreter directive for python scripts

Maxime Ripard maxime.ripard at free-electrons.com
Wed Aug 22 07:17:13 UTC 2012


Hi,

Le 11/08/2012 07:43, Jonathan Liu a écrit :
> +# Fix Python interpreter directive
> +define PYTHON_FIX_INTERPRETER
> +        sed -i '1s|#!.*python.*|#!/usr/bin/env python|' $(TARGET_DIR)/usr/bin/{easy_install,easy_install-2.7,idle,smtpd.py}
> +endef
> +
> +PYTHON_POST_INSTALL_TARGET_HOOKS += PYTHON_FIX_INTERPRETER
> +

Could you provide a bit more input on why this patch is needed ?
Did you encounter a bug? Which one?

Thanks,
-- 
Maxime Ripard, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list