mirror of
https://github.com/status-im/miniupnp.git
synced 2025-02-05 10:54:18 +00:00
setupmingw32.py: follow the symbolic link manually if needed
see https://github.com/miniupnp/miniupnp/pull/750#issuecomment-2160833748
This commit is contained in:
parent
f79ae6738d
commit
c735d2b39a
@ -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=[
|
||||
|
Loading…
x
Reference in New Issue
Block a user