python-packaging icon indicating copy to clipboard operation
python-packaging copied to clipboard

Note any significant distinctions between distutils and setuptools

Open kristall opened this issue 8 years ago • 9 comments

Aloha,

"you’ll need to supply include_package_data=True to the setup() function."

/usr/local/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'include_package_data' warnings.warn(msg)

It seems that (at least with python3) this option is no longer available.

kristall avatar Sep 07 '16 14:09 kristall

This works if your setup.py uses the setup function from setuptools, not distutils. Are the instructions clear on that point?

merwok avatar Sep 07 '16 15:09 merwok

Ah, thanks for the hint. Imho the instructions are not clear on that point (especially if you just look at adding non-code files page).

kristall avatar Sep 07 '16 16:09 kristall

Thanks for the heads up. I'll clarify this point and investigate the circumstances under which one might end up with setuptools vs ``distutils` on a given platform.

storborg avatar Sep 07 '16 18:09 storborg

Thanks for your help and time guys.

kristall avatar Sep 07 '16 18:09 kristall

I'm going to leave this ticket open until I have a chance to update that.

storborg avatar Sep 07 '16 18:09 storborg

That is, of course, your prerogative.

kristall avatar Sep 07 '16 18:09 kristall

So if you want to mention any significant distinction, then let me mention also that: /usr/local/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'install_requires' warnings.warn(msg)

kristall avatar Sep 07 '16 20:09 kristall

Good to know, thanks. I'm actually leaning towards advising "don't use distutils at all, here's how to use setuptools..."

storborg avatar Sep 07 '16 21:09 storborg

Well after having that warnings I tend to agree with you. But be sure to mention it on every side, since when you search stuff you don't always start reading at the frontpage.

kristall avatar Sep 10 '16 03:09 kristall