Advertisement
kaczoanoker

encoding.patch

Jun 6th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.84 KB | None | 0 0
  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 = {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement