From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
To: Federico Beffa <beffa@ieee.org>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: Python conflicts.
Date: Tue, 30 Jun 2015 10:04:47 +0200 [thread overview]
Message-ID: <idjegktipuo.fsf@bimsb-sys02.mdc-berlin.net> (raw)
In-Reply-To: <CAKrPhPOUo6O=hxqgB6kpdru0bisYAO3ARquqeoMJt9-ptmYG-g@mail.gmail.com>
Federico Beffa <beffa@ieee.org> writes:
>> 2) lib/python$version/site-packages/site.{py,pyc}
>>
>> Another file that frequently causes conflicts is "site.py" (and its
>> compiled cousin). It seems to me that "site.py" doesn't contain any
>> module-specific information and is probably the same for all modules. I
>> would like to change "python-build-system" such that Python modules do
>> not install this file at all.
>>
>> The only problem I see is that the "python" package itself does not come
>> with this file. If it should be provided at all I think that it should
>> come from the "python" package, rather than any of the modules that may
>> or may not be installed.
>
> 'site.py[c]' is installed and used by 'setuptools' based
> programs/libraries. The purpose of the file is to add sub-directories to
> PYTHONPATH. If you remove the file, libraries configured with setuptools
> will not work anymore, unless you do the work done by 'site.py' in
> another way.
>
> https://pythonhosted.org/setuptools/easy_install.html
Currently, we have *many* packages providing this file. My goal is to
avoid the confusing and verbose conflict warnings by only providing it
once. Is it feasible to let our "python" package install "site.py" once
and remove the file from all other packages?
Right now we only have one of these many files installed at a time
anyway, so I assume they all have the same contents. The "python"
package creates lib/python${version}/site-packages/ with a README
already in which "site.py" is mentioned. I suggest we let "python"
install "site.py" once and for all.
Obviously, we cannot *just* remove it and expect things to continue
working.
~~ Ricardo
next prev parent reply other threads:[~2015-06-30 8:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-30 7:01 Python conflicts Federico Beffa
2015-06-30 8:04 ` Ricardo Wurmus [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-06-29 12:31 Ricardo Wurmus
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=idjegktipuo.fsf@bimsb-sys02.mdc-berlin.net \
--to=ricardo.wurmus@mdc-berlin.de \
--cc=beffa@ieee.org \
--cc=guix-devel@gnu.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).