Menu

#3 Patch Setup Use of Docstring

1.0
open
nobody
None
2015-10-05
2015-10-03
No

This doesn't seem like the right spot for this but it won't let me create a new patch or bug, so I'm adding it here.

Use of doc in setup.py prevents installation if the Python interpreter is running in -O0 mode, which strips out docstrings. This mode is useful in production deployments with lots of dependencies as it saves dozens of megabytes in disk and memory.

Patch is a simple work around for this case where doc may be None.

1 Attachments

Discussion

  • David Sanders

    David Sanders - 2015-10-03

    SourceForge messed with the formatting of that, it should say __doc__.

     
  • Ilya Etingof

    Ilya Etingof - 2015-10-03

    Oh, that's a good catch, thanks David!

     
  • David Sanders

    David Sanders - 2015-10-05

    Cheers, thanks for the quick response. Shame I missed the 0.1.9 release by a week.

     

Log in to post a comment.