setupmingw32.py: follow the symbolic link manually if needed

see https://github.com/miniupnp/miniupnp/pull/750#issuecomment-2160833748
This commit is contained in:
Thomas Bernard 2024-06-13 01:18:29 +02:00
parent f79ae6738d
commit c735d2b39a
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF

View File

@ -20,11 +20,17 @@ except ImportError:
from distutils import sysconfig
sysconfig.get_config_vars()["OPT"] = ''
sysconfig.get_config_vars()["CFLAGS"] = ''
lic = open('LICENSE').read()
# follow the symbolic link manually if needed
if lic.startswith('../'):
lic = open(lic).read()
setup(name="miniupnpc",
version=open('VERSION').read().strip(),
author='Thomas BERNARD',
author_email='miniupnp@free.fr',
license=open('LICENSE').read(),
license=lic,
url='https://miniupnp.tuxfamily.org/',
description='MiniUPnP IGD client',
ext_modules=[