import os import shutil import subprocess import sys from pathlib import Path import setuptools from setuptools import Extension, setup from setuptools.command.build_ext import build_ext with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup( name="pixelflux", version="1.2.8", author="Linuxserver.io", author_email="pypi@linuxserver.io", description="A performant web native pixel delivery pipeline for diverse sources, blending VNC-inspired parallel processing of pixel buffers with flexible modern encoding formats.", long_description=long_description, long_description_content_type="text/markdown", license="MPL-2.0", url="https://github.com/linuxserver/pixelflux", packages=setuptools.find_packages(), ext_modules=[ Extension( name='pixelflux.screen_capture_module', sources=[ 'pixelflux/screen_capture_module.cpp', 'pixelflux/include/xxhash.c' ], include_dirs=['pixelflux/include'], libraries=['X11', 'Xext', 'Xfixes', 'jpeg', 'x264', 'yuv', 'dl', 'va', 'va-drm'], extra_compile_args=['-std=c++17', '-Wno-unused-function', '-fPIC', '-shared', '-O3'], language='c++', ) ], classifiers=[ "Programming Language :: Python :: 3", "Operating System :: POSIX :: Linux", ], python_requires=">=3.6", )