easy_install doesn't install non-package *.py file

Makoto Kuwata kwa at kuwata-lab.com
Thu Nov 10 15:38:53 EST 2011


On Thu, Nov 10, 2011 at 6:08 PM, Jonathan Hartley <tartley at tartley.com> wrote:
> Hey. I don't know the details, but your setup.py needs to use either the 'package_data' or the 'data_files' entry in the dict you pass to setup. These can specify files you want included in the sdist which aren't package files.
>
> There are many complications with using them though. One of them in particular (I don't remember which one) installs the files you specify in a different place depending on whether the user is installing the sdist from local files (python setup.py install) or using pip, so be sure to test both ways.

'package_data' is the solution for my trouble.
Thank you very much, Jonathan.

--
regards,
makoto kuwata



More information about the Python-list mailing list