All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] python-setuptools: Add patch to prevent detecting the host installation
Date: Wed, 21 Aug 2013 22:49:48 +0200	[thread overview]
Message-ID: <521527EC.8000307@mind.be> (raw)
In-Reply-To: <1377008739-12484-1-git-send-email-markos.chandras@imgtec.com>

On 20/08/13 16:25, Markos Chandras wrote:
> Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
> ---
>   ...etuptools-do-not-detect-installed-version.patch | 26 ++++++++++++++++++++++
>   1 file changed, 26 insertions(+)
>   create mode 100644 package/python-setuptools/python-setuptools-do-not-detect-installed-version.patch
> 
> diff --git a/package/python-setuptools/python-setuptools-do-not-detect-installed-version.patch b/package/python-setuptools/python-setuptools-do-not-detect-installed-version.patch
> new file mode 100644
> index 0000000..ebc8830
> --- /dev/null
> +++ b/package/python-setuptools/python-setuptools-do-not-detect-installed-version.patch
> @@ -0,0 +1,26 @@
> +Prevent build system from detecting an existing installation.
> +Fixes the following problem when python-setuptools is installed
> +on the host:
> +
> +Setuptools installation detected at /usr/lib64/python2.7/site-packages
> +Renaming /usr/lib64/python2.7/site-packages/setuptools-0.9.8-py2.7.egg-info to
> +/usr/lib64/python2.7/site-packages/setuptools-0.9.8-py2.7.egg-info.OLD.1377005697.88
> +OSError: [Errno 13] Permission denied

 This happens because setuptools is called with:

	PYTHONPATH="/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages"

 Yegor, Gustavo, any idea why this is called with a python path pointing
to the host? Maybe this isn't needed anymore? A quick grep in the source
doesn't indicate an obvious place where PYTHONPATH would be relevant
during install itself.

 I've just tried removing the PYTHONPATH override and it built OK, but I
haven't tested if a package installed with setuptools actually works.
Well, actually, host-setuptools _doesn't_ have that strange
PYTHONPATH override and that is of course the only one used within
buildroot itself...


 Regards,
 Arnout


> +
> +Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
> +
> +Index: python-setuptools-0.6.36/setup.py
> +===================================================================
> +--- python-setuptools-0.6.36.orig/setup.py
> ++++ python-setuptools-0.6.36/setup.py
> +@@ -129,10 +129,6 @@ def _being_installed():
> +         return False
> +     return  'install' in sys.argv[1:] or _easy_install_marker()
> +
> +-if _being_installed():
> +-    from distribute_setup import _before_install
> +-    _before_install()
> +-
> + # return contents of reStructureText file with linked issue references
> + def _linkified(rst_path):
> +     bitroot = 'http://bitbucket.org/tarek/distribute'
> 


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

  reply	other threads:[~2013-08-21 20:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-20 14:25 [Buildroot] [PATCH] python-setuptools: Add patch to prevent detecting the host installation Markos Chandras
2013-08-21 20:49 ` Arnout Vandecappelle [this message]
2013-08-22  8:19   ` Yegor Yefremov
2013-08-22  9:07     ` Yegor Yefremov
2013-08-22  9:17       ` Markos Chandras
2013-08-22  9:21         ` Arnout Vandecappelle
2013-08-22  9:18       ` Arnout Vandecappelle
2013-08-22 10:36         ` Yegor Yefremov
2013-08-22 11:12           ` Gustavo Zacarias
2013-08-22 11:17             ` Arnout Vandecappelle
2013-08-22 11:24               ` Gustavo Zacarias
2013-08-22 20:33                 ` Markos Chandras
2013-08-22 20:37                   ` Arnout Vandecappelle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=521527EC.8000307@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.