From 7da99055891baaa453d7d575985bc9824cf5f47c Mon Sep 17 00:00:00 2001 From: Riccardo Spagni Date: Wed, 30 Dec 2015 09:56:25 +0200 Subject: updated miniupnpc --- external/miniupnpc/setupmingw32.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 external/miniupnpc/setupmingw32.py (limited to 'external/miniupnpc/setupmingw32.py') diff --git a/external/miniupnpc/setupmingw32.py b/external/miniupnpc/setupmingw32.py old mode 100644 new mode 100755 index 6dcfce799..7e3c382bd --- a/external/miniupnpc/setupmingw32.py +++ b/external/miniupnpc/setupmingw32.py @@ -1,11 +1,15 @@ #! /usr/bin/python +# vim: tabstop=8 shiftwidth=8 expandtab # $Id: setupmingw32.py,v 1.8 2012/05/23 08:50:10 nanard Exp $ # the MiniUPnP Project (c) 2007-2014 Thomas Bernard # http://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/ # # python script to build the miniupnpc module under windows (using mingw32) # -from distutils.core import setup, Extension +try: + from setuptools import setup, Extension +except ImportError: + from distutils.core import setup, Extension from distutils import sysconfig sysconfig.get_config_vars()["OPT"] = '' sysconfig.get_config_vars()["CFLAGS"] = '' -- cgit v1.2.3