[ANNOUNCE] tuna-0.19
by John Kacur
I'm pleased to announce tuna-0.19
The big news here is the release of the new command-line interface
based on argparse from Leah, thanks Leah!
John Kacur (4):
tuna: Replace python_ethtool with builtin funtionality
tuna: Fix matching irqs in ps_show_thread
tuna: Remove distutils from setup
tuna: Release 0.19
Leah Leshchinsky (11):
tuna: Update command-line interface
tuna: Move get_policy_and_rtprio call to parser level
tuna: Add --sockets command line option
tuna: Remove threads print statement
tuna: tuna_gui.py use fstrings
tuna: tuna-cmd.py use fstrings
tuna: tuna.py use fstrings
tuna: remove import and fix help message
tuna: Update manpages for argparse CLI changes
tuna: Adapt show_threads cgroup output to terminal size
tuna: Fix show_threads --cgroups run without a term
docs/tuna.8 | 292 ++++++++++++++----
setup.py | 19 +-
tuna-cmd.py | 718 ++++++++++++++++++++------------------------
tuna/gui/irqview.py | 2 +-
tuna/new_eth.py | 37 +++
tuna/tuna.py | 34 +--
tuna/tuna_gui.py | 2 +-
7 files changed, 619 insertions(+), 485 deletions(-)
create mode 100755 tuna/new_eth.py
--
2.39.1
9 months, 4 weeks
[PATCH] python_linux_procfs: setup.py: Remove distutils
by John Kacur
distutils is deprecated, so use sysconfig instead
different versions of python produce different results, which is why
we test which SCHEME is available before calculating our answer.
TODO: test whether we need to calculate PYTHONLIB at all. Is it being
used during the setup? We don't appear to be using a --prefix from our
specfiles. This patch ensures that if it is used, we are getting a
correct PYTHONLIB without using distutils, but perhaps we can just drop
this section.
We need to bump the version number as well here, it looks like it was
missed the last time.
Signed-off-by: John Kacur <jkacur(a)redhat.com>
---
setup.py | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/setup.py b/setup.py
index 0ee543487c31..92e6363abb4b 100755
--- a/setup.py
+++ b/setup.py
@@ -1,17 +1,21 @@
#!/usr/bin/python3
import os
-from os.path import isfile, join
-from distutils.sysconfig import get_python_lib
+from os.path import isfile, relpath
+import sysconfig
from setuptools import setup
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 = join(get_python_lib(standard_lib=1, prefix=''), 'site-packages')
+PYTHONLIB = relpath(sysconfig.get_path('platlib', SCHEME), '/usr')
setup(name="python-linux-procfs",
- version = "0.7.0",
+ version = "0.7.1",
description = "Linux /proc abstraction classes",
author = "Arnaldo Carvalho de Melo",
author_email = "acme(a)redhat.com",
--
2.39.1
9 months, 4 weeks