1 Star 0 Fork 0

yihuang/cprotobuf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
setup.py 907 Bytes
一键复制 编辑 原始数据 按行查看 历史
yihuang 提交于 2019-09-23 03:40 . boost version
#!/usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
try:
from Cython.Distutils import build_ext
have_cython = True
except ImportError:
have_cython = False
if have_cython:
ext_modules = [Extension("cprotobuf.internal", ["cprotobuf/internal.pyx"])
]
cmdclass = {'build_ext': build_ext}
else:
cmdclass = {}
ext_modules = [Extension("cprotobuf.internal", ["cprotobuf/internal.c"])
]
setup(
version='0.1.10',
name='cprotobuf',
ext_modules=ext_modules,
scripts=['protoc-gen-cprotobuf'],
packages=['cprotobuf'],
author='huangyi',
author_email='yi.codeplayer@gmail.com',
url='https://github.com/yihuang/cprotobuf',
description='pythonic and high performance protocol buffer implementation.',
cmdclass=cmdclass,
long_description=open('README.rst').read(),
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/yiprogrammer/cprotobuf.git
git@gitee.com:yiprogrammer/cprotobuf.git
yiprogrammer
cprotobuf
cprotobuf
master

搜索帮助