Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

encoding.patch

By: kaczoanoker on Jun 6th, 2013  |  syntax: Diff  |  size: 0.84 KB  |  hits: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- a/setup.py  2013-03-19 07:30:25.000000000 -0400
  2. +++ b/setup.py  2013-06-06 18:02:03.542285031 -0400
  3. @@ -13,2 +13,9 @@ def find_packages(toplevel):
  4.  
  5. +modules  = [
  6. +      Extension(name = "sipsimple.core._core",
  7. +      sources = ["sipsimple/core/_core.pyx", "sipsimple/core/_core.pxd"] + glob.glob(os.path.join("sipsimple", "core", "_core.*.pxi")))
  8. +      ]
  9. +for e in modules:
  10. +    e.cython_directives = {'c_string_encoding': 'ascii'}
  11. +
  12.  setup(name         = "python-sipsimple",
  13. @@ -32,6 +39,3 @@ setup(name         = "python-sipsimple",
  14.        },
  15. -      ext_modules  = [
  16. -            Extension(name = "sipsimple.core._core",
  17. -            sources = ["sipsimple/core/_core.pyx", "sipsimple/core/_core.pxd"] + glob.glob(os.path.join("sipsimple", "core", "_core.*.pxi")))
  18. -            ],
  19. +      ext_modules = modules,
  20.        cmdclass = {