1 Star 0 Fork 0

david13_guo/libnatpmp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
setup.py 944 Bytes
一键复制 编辑 原始数据 按行查看 历史
#! /usr/bin/env python
# vim: tabstop=8 shiftwidth=8 expandtab
# $Id: setup.py,v 1.3 2012/03/05 04:54:01 nanard Exp $
#
# python script to build the libnatpmp module under unix
from setuptools import setup, Extension
from setuptools.command import build_ext
import subprocess
import os
EXT = ['libnatpmp.a']
class make_then_build_ext(build_ext.build_ext):
def run(self):
subprocess.check_call([os.environ.get('MAKE','make')] + EXT)
build_ext.build_ext.run(self)
setup(name="libnatpmp",
version="1.0",
author='Thomas BERNARD',
author_email='miniupnp@free.fr',
license=open('LICENSE').read(),
description='NAT-PMP library',
cmdclass={'build_ext': make_then_build_ext},
ext_modules=[
Extension(name="libnatpmp", sources=["libnatpmpmodule.c"],
extra_objects=EXT,
define_macros=[('ENABLE_STRNATPMPERR', None)]
)]
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/david13_guo/libnatpmp.git
git@gitee.com:david13_guo/libnatpmp.git
david13_guo
libnatpmp
libnatpmp
master

搜索帮助