mirror of
https://github.com/Minecraft-Community-Edition/client.git
synced 2026-07-16 04:11:11 +00:00
upnp & discord game invite support (very buggy)
This commit is contained in:
37
Minecraft.Client/miniupnpc/setup.py
Normal file
37
Minecraft.Client/miniupnpc/setup.py
Normal file
@@ -0,0 +1,37 @@
|
||||
#! /usr/bin/env python
|
||||
# vim: tabstop=8 shiftwidth=8 expandtab
|
||||
# $Id: setup.py,v 1.17 2024/06/22 19:23:20 nanard Exp $
|
||||
# the MiniUPnP Project (c) 2007-2024 Thomas Bernard
|
||||
# https://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/
|
||||
#
|
||||
# python script to build the miniupnpc module under unix
|
||||
#
|
||||
# Uses MAKE environment variable (defaulting to 'make')
|
||||
|
||||
from setuptools import setup, Extension
|
||||
from setuptools.command import build_ext
|
||||
import subprocess
|
||||
import os
|
||||
|
||||
EXT = ['build/libminiupnpc.a']
|
||||
|
||||
class make_then_build_ext(build_ext.build_ext):
|
||||
def run(self):
|
||||
subprocess.check_call([os.environ.get('MAKE', 'make')] + EXT)
|
||||
build_ext.build_ext.run(self)
|
||||
|
||||
setup(name="miniupnpc",
|
||||
version=open('VERSION').read().strip(),
|
||||
author='Thomas BERNARD',
|
||||
author_email='miniupnp@free.fr',
|
||||
license=open('LICENSE').read(),
|
||||
url='https://miniupnp.tuxfamily.org/',
|
||||
description='MiniUPnP IGD client',
|
||||
long_description=open('DESCRIPTION').read().strip(),
|
||||
long_description_content_type='text/plain',
|
||||
cmdclass={'build_ext': make_then_build_ext},
|
||||
ext_modules=[
|
||||
Extension(name="miniupnpc", sources=["src/miniupnpcmodule.c"],
|
||||
include_dirs=['include'], extra_objects=EXT)
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user