On Tue, Jun 7, 2016 at 10:14 AM, Jeroen Demeyer <jdeme...@cage.ugent.be> wrote:
> On 2016-06-07 09:53, Erik Bray wrote:
>>
>> $ ./setup.py install --root=root
>
>
> Well, it seems that setuptools behaves completely differently if --root is
> set, no idea why...

I explained this is because --root implicitly disables easy_install

> With --root=/tmp
>
> [...]
> copying banshees.txt -> /tmp/usr/local/src/sage-git/local/shared/siouxsie
> [...]
>
> Without --root
>
> [...]
> installing package data to build/bdist.linux-x86_64/egg
> [...]
> copying banshees.txt -> build/bdist.linux-x86_64/egg/shared/siouxsie
> [...]
>
>> pip install .
>
>
> This does the right thing:
>
> $ pip install . --verbose
>
> [...]
> copying banshees.txt -> /usr/local/src/sage-git/local/shared/siouxsie
> [...]
>
> So the conclusion is that a plain "./setup.py install" does *not* support
> data_files in a reasonable way, but "pip install ." does. You have to admit
> that this is at least confusing...

Absolutely!  I'm trying (when i get the time) to get this fixed:
https://github.com/pypa/setuptools/issues/529  It's an uphill battle
against years of backwards-compatibilty (that would be broken).  The
fix I proposed is a workaround that doesn't break backwards compat,
but does make things a little easier.

This is one of several reasons I (and most other people in the Python
packaging development) advise against running `pip install .`.  A lot
of the historical advice about Python packaging has yet to catch up
with this though!

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to