Annotation of embedaddon/miniupnpd/miniupnpc/setupmingw32.py, revision 1.1

1.1     ! misho       1: #! /usr/bin/env python
        !             2: # vim: tabstop=8 shiftwidth=8 expandtab
        !             3: # $Id: setupmingw32.py,v 1.12 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 windows (using mingw32)
        !             8: #
        !             9: import sys
        !            10: 
        !            11: if (sys.version_info.major * 10 +  sys.version_info.minor) >= 35:
        !            12:         compat_lib = ["legacy_stdio_definitions"]
        !            13: else:
        !            14:         compat_lib = []
        !            15: 
        !            16: try:
        !            17:         from setuptools import setup, Extension
        !            18: except ImportError:
        !            19:         from distutils.core import setup, Extension
        !            20: from distutils import sysconfig
        !            21: sysconfig.get_config_vars()["OPT"] = ''
        !            22: sysconfig.get_config_vars()["CFLAGS"] = ''
        !            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:       ext_modules=[
        !            31:          Extension(name="miniupnpc", sources=["src/miniupnpcmodule.c"],
        !            32:                    libraries=["ws2_32", "iphlpapi"] + compat_lib,
        !            33:                    include_dirs=['include'], extra_objects=["miniupnpc.lib"])
        !            34:       ])
        !            35: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>