# Copyright (C) 2014-2025 Savoir-faire Linux Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . from setuptools import setup, Extension import os with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.md'), 'r', encoding='utf-8') as f: long_description = f.read() setup(name="opendht", version="@PACKAGE_VERSION@", description="OpenDHT: A lightweight Distributed Hash Table", long_description=long_description, long_description_content_type="text/markdown", url='https://github.com/savoirfairelinux/opendht', author="Adrien Beraud ", license="GPL-3.0-or-later", classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: System :: Distributed Computing', 'Topic :: System :: Networking', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.9', ], ext_modules = [Extension( "opendht", ["@CURRENT_SOURCE_DIR@/opendht.pyx"], language="c++", extra_compile_args=["-std=c++17"], extra_link_args=["-std=c++17"], libraries=["opendht"], include_dirs = ['@PROJECT_SOURCE_DIR@/include'@OPENDHT_PYTHON_INCLUDE_DIRS@], library_dirs = ['@CURRENT_BINARY_DIR@', '@PROJECT_BINARY_DIR@'@OPENDHT_PYTHON_LIBRARY_DIRS@] )] )