V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
wyc9296
V2EX  ›  Python

Cypthon 编译出来的 pyd 怎么添加版本号?

  •  
  •   wyc9296 · 2019-04-19 10:57:52 +08:00 · 3833 次点击
    这是一个创建于 1805 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题,setup.py 中添加 version = 3.1.1.1 没有用,.pyd 右键详细信息里的 fileversion 还是没有:

    
    from distutils.core import setup, Extension
    from Cython.Build import cythonize
    setup(name = 'xxx',
        ext_modules = cythonize("xxx.py"),
        version="3.3.0.0",
    )
    
    
    wyc9296
        2
    wyc9296  
    OP
       2019-04-19 19:22:23 +08:00 via Android
    @SoulMelody 非常感谢!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1712 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 72ms · UTC 16:42 · PVG 00:42 · LAX 09:42 · JFK 12:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.