weixin_39517560
weixin_39517560
2020-11-28 01:04

support -o toto.cpython-37m-x86_64-linux-gnu.so

This fixes issue #1098

-sans-paille can you tell me where I can add a test for this? i didn't find any tests on the -o / output_file option.

该提问来源于开源项目:serge-sans-paille/pythran

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

5条回答

  • weixin_39850599 weixin_39850599 4月前

    thanks for the commit! You can add test in the docstring of the function.

    点赞 评论 复制链接分享
  • weixin_39517560 weixin_39517560 4月前

    How can one run these doctring tests? Is it possible to run only the tests for functions in toolchain.py?

    点赞 评论 复制链接分享
  • weixin_39850599 weixin_39850599 4月前

    How can one run these doctring tests? Is it possible to run only the tests for functions in toolchain.py?

    py.test pythran/tests/test_xdoc.py

    They are relatively fast, but you can filter using -k flag

    点赞 评论 复制链接分享
  • weixin_39850599 weixin_39850599 4月前

    your doc string is not compatible with python2, please use

    
    sysconfig.get_config_vars()['SO']
    

    that raises no warnings and works for both version.

    点赞 评论 复制链接分享
  • weixin_39517560 weixin_39517560 4月前

    On Python 3.7, sysconfig.get_config_var('SO') raises a warning... Anyway, I change this.

    点赞 评论 复制链接分享