diff options
| -rw-r--r-- | setup.py | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..d048571 --- /dev/null +++ b/setup.py @@ -0,0 +1,51 @@ +#!/usr/bin/python +# SPDX-License-Identifier: GPL-2.0-only +# +# setup.py - Legacy setup script for older distributions +# +# This file provides backwards compatibility for distributions that don't +# support modern pyproject.toml-based builds (PEP 517/518). +# For modern builds, use: pip install . +# +# IMPORTANT: Keep this file in sync with pyproject.toml + +import os +from os.path import isfile, relpath +import sysconfig +from setuptools import setup, find_packages + +if isfile("MANIFEST"): + os.unlink("MANIFEST") + +SCHEME = 'rpm_prefix' +if not SCHEME in sysconfig.get_scheme_names(): + SCHEME = 'posix_prefix' + +# Get PYTHONLIB with no prefix so --prefix installs work. +PYTHONLIB = relpath(sysconfig.get_path('platlib', SCHEME), '/usr') + +setup( + name="python-linux-procfs", + version="0.7.4", + description="Linux /proc abstraction classes", + author="Arnaldo Carvalho de Melo, John Kacur", + author_email="[email protected], [email protected]", + maintainer="John Kacur", + maintainer_email="[email protected]", + url="https://www.kernel.org/pub/software/libs/python/python-linux-procfs", + license="GPL-2.0-only", + long_description="""\ +Abstractions to extract information from the Linux kernel /proc files. +""", + packages=find_packages(include=["procfs*"]), + scripts=["pflags"], + install_requires=[], + classifiers=[ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", + "Operating System :: POSIX :: Linux", + "Programming Language :: Python :: 3", + "Topic :: System :: Operating System Kernels :: Linux", + ], +) |
