Annotation of embedaddon/miniupnpd/miniupnpc/setup.py, revision 1.1
1.1 ! misho 1: #! /usr/bin/env python
! 2: # vim: tabstop=8 shiftwidth=8 expandtab
! 3: # $Id: setup.py,v 1.14 2020/04/06 10:23:02 nanard Exp $
! 4: # the MiniUPnP Project (c) 2007-2021 Thomas Bernard
! 5: # https://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/
! 6: #
! 7: # python script to build the miniupnpc module under unix
! 8: #
! 9: # Uses MAKE environment variable (defaulting to 'make')
! 10:
! 11: from setuptools import setup, Extension
! 12: from setuptools.command import build_ext
! 13: import subprocess
! 14: import os
! 15:
! 16: EXT = ['build/libminiupnpc.a']
! 17:
! 18: class make_then_build_ext(build_ext.build_ext):
! 19: def run(self):
! 20: subprocess.check_call([os.environ.get('MAKE', 'make')] + EXT)
! 21: build_ext.build_ext.run(self)
! 22:
! 23: setup(name="miniupnpc",
! 24: version=open('VERSION').read().strip(),
! 25: author='Thomas BERNARD',
! 26: author_email='miniupnp@free.fr',
! 27: license=open('LICENSE').read(),
! 28: url='http://miniupnp.free.fr/',
! 29: description='miniUPnP client',
! 30: cmdclass={'build_ext': make_then_build_ext},
! 31: ext_modules=[
! 32: Extension(name="miniupnpc", sources=["src/miniupnpcmodule.c"],
! 33: include_dirs=['include'], extra_objects=EXT)
! 34: ])
! 35:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>