Skip to content

Note any significant distinctions between distutils and setuptools #22

Open

Description

@kristall

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.

Activity

  1. merwok commented on Sep 7, 2016

    @merwok

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

  2. kristall commented on Sep 7, 2016

    @kristall
    Author

    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).

  3. storborg commented on Sep 7, 2016

    @storborg
    Owner

    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.

  4. kristall commented on Sep 7, 2016

    @kristall
    Author

    Thanks for your help and time guys.

  5. changed the title [-]Problem with Adding Non-Code Files[/-] [+]Note any significant distinctions between distutils and setuptools[/+] on Sep 7, 2016
  6. storborg commented on Sep 7, 2016

    @storborg
    Owner

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

  7. kristall commented on Sep 7, 2016

    @kristall
    Author

    That is, of course, your prerogative.

  8. kristall commented on Sep 7, 2016

    @kristall
    Author

    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)

  9. storborg commented on Sep 7, 2016

    @storborg
    Owner

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

  10. kristall commented on Sep 10, 2016

    @kristall
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions