[Distutils] Packages that have problems being installed from wheels

Donald Stufft donald at stufft.io
Thu Aug 28 21:35:08 CEST 2014


> On Aug 28, 2014, at 3:24 PM, Joost Molenaar <j.j.molenaar at gmail.com> wrote:
> 
> On Aug 27, 2014 8:50 AM, "Paul Moore" <p.f.moore at gmail.com> wrote:
>> 
>> tl; dr; If you know of a project that can't be successfully installed
>> with "pip wheel proj; pip install /path/to/the/wheel.whl" can you let
>> me know the details?
> 
> Both Ansible and Fabric want to put stuff in <virtualenv>/usr/share,
> which doesn't work from a .whl file but does from the sdist.

This should be possible I think, that’s just the “data” scheme. Maybe
the tooling isn’t quite set up for it?

> 
> AFAICT, you need to spell out the data files redundantly in
> MANIFEST.in *and* setup(data_files=...), or the wheel won't contain
> the files.

This is correct, because these two things mean different things, MANIFEST.in
is the files that get added to the sdist itself, it has no control over what gets
installed whereas data_files tells distills what files to install into the data
location.

You need both because if you only have MANIFEST.in, then distills won’t
actually install the files, and if you only have data_files then the sdist won’t
actually contain the files.

> 
> I've been meaning to write up a test case to demonstrate the
> problem for a good while, but haven't got around to it yet.
> 
> HTH,
> 
> Joost Molenaar
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig

---
Donald Stufft
PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20140828/2e7ae881/attachment.html>


More information about the Distutils-SIG mailing list