From 534d978e478e735ff53ea6e16a04e610de644b2a Mon Sep 17 00:00:00 2001 From: Syping Date: Thu, 16 Nov 2023 00:07:43 +0100 Subject: [PATCH] pyragephoto: ship libragephoto with Python Package --- src/python/pyproject.toml.in | 6 ++++++ src/python/setup.py.in | 17 +++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/python/pyproject.toml.in b/src/python/pyproject.toml.in index 97a882e..39a1e69 100644 --- a/src/python/pyproject.toml.in +++ b/src/python/pyproject.toml.in @@ -16,3 +16,9 @@ build-backend = "setuptools.build_meta" [project.urls] "Homepage" = "https://libragephoto.syping.de/" + +[tool.setuptools] +include-package-data = true + +[tool.setuptools.package-data] +ragephoto = ["*.dll", "*.so"] diff --git a/src/python/setup.py.in b/src/python/setup.py.in index b996135..7f1cf4b 100644 --- a/src/python/setup.py.in +++ b/src/python/setup.py.in @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - ############################################################################## # libragephoto for Python # Copyright (C) 2023 Syping @@ -21,13 +20,15 @@ from setuptools import setup, find_packages setup( - name = "ragephoto", - version = "@ragephoto_VERSION@", - author = "Syping", - packages = ["ragephoto"], - url = "https://libragephoto.syping.de/", - description = "libragephoto for Python", - classifiers = [ + name="ragephoto", + version="@ragephoto_VERSION@", + author="Syping", + packages=["ragephoto"], + package_data={"ragephoto":["*.dll","*.so"]}, + include_package_data=True, + url="https://libragephoto.syping.de/", + description="libragephoto for Python", + classifiers=[ "License :: OSI Approved :: BSD-2-Clause", ] )