diff --git a/.pre-commit-hooks/check_changelog_entries.py b/.pre-commit-hooks/check_changelog_entries.py index a7064f1..47680ae 100644 --- a/.pre-commit-hooks/check_changelog_entries.py +++ b/.pre-commit-hooks/check_changelog_entries.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# Copyright 2021-2023 VMware, Inc. +# Copyright 2021-2024 VMware, Inc. # SPDX-License-Identifier: Apache-2.0 # # pylint: skip-file diff --git a/.pre-commit-hooks/copyright_headers.py b/.pre-commit-hooks/copyright_headers.py index eb0fedb..aa65dee 100644 --- a/.pre-commit-hooks/copyright_headers.py +++ b/.pre-commit-hooks/copyright_headers.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# Copyright 2021-2023 VMware, Inc. +# Copyright 2021-2024 VMware, Inc. # SPDX-License-Identifier: Apache-2.0 # # pylint: disable=invalid-name,missing-module-docstring,missing-function-docstring diff --git a/setup.py b/setup.py index 376eb70..aed0d11 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,22 @@ # Copyright 2023 VMware, Inc. # SPDX-License-Identifier: Apache-2.0 # +import platform + from setuptools import Distribution, setup +GLIBC_VERSION = "2.17" + -class BinaryDistribution(Distribution): - def has_ext_modules(self): - return True +def plat_name(): + return f"manylinux_{GLIBC_VERSION.replace('.', '_')}_{platform.machine()}" setup( - distclass=BinaryDistribution, + options={ + "bdist_wheel": { + "plat_name": f"{plat_name()}", + "python_tag": "py3", + } + } ) diff --git a/src/relenv_gdb/build.py b/src/relenv_gdb/build.py index bee6c4b..a673609 100644 --- a/src/relenv_gdb/build.py +++ b/src/relenv_gdb/build.py @@ -1,4 +1,4 @@ -# Copyright 2023 VMware, Inc. +# Copyright 2023-2024 VMware, Inc. # SPDX-License-Identifier: Apache-2.0 # """ @@ -9,6 +9,7 @@ import pathlib import shutil import subprocess +import sys import tempfile import relenv.buildenv @@ -55,7 +56,11 @@ def build_gdb(prefix): ] = f"{os.environ['CPPFLAGS']} -I{os.environ['RELENV_PATH']}/include/ncursesw" import pprint + print("*" * 80) + print("** Environment") pprint.pprint(dict(os.environ)) + print("*" * 80) + sys.stdout.flush() with pushd(src / dir_name): subprocess.run( diff --git a/src/relenv_gdb/dbg.py b/src/relenv_gdb/dbg.py index 3cf168a..e1c56d4 100755 --- a/src/relenv_gdb/dbg.py +++ b/src/relenv_gdb/dbg.py @@ -1,4 +1,4 @@ -# Copyright 2023 VMware, Inc. +# Copyright 2023-2024 VMware, Inc. # SPDX-License-Identifier: Apache-2.0 """ Use gdb to pull python stack traces a parent process and all of it's children. diff --git a/src/relenv_gdb/gdbinit.py b/src/relenv_gdb/gdbinit.py index ff57dcf..1ea9f1c 100644 --- a/src/relenv_gdb/gdbinit.py +++ b/src/relenv_gdb/gdbinit.py @@ -1,4 +1,4 @@ -# Copyright 2023 VMware, Inc. +# Copyright 2023-2024 VMware, Inc. # SPDX-License-Identifier: Apache-2.0 # """ diff --git a/src/relenv_gdb/inject.py b/src/relenv_gdb/inject.py index 8710f82..ff027fa 100644 --- a/src/relenv_gdb/inject.py +++ b/src/relenv_gdb/inject.py @@ -1,4 +1,4 @@ -# Copyright 2023 VMware, Inc. +# Copyright 2023-2024 VMware, Inc. # SPDX-License-Identifier: Apache-2.0 """ Inject python code into a running process. diff --git a/src/relenv_gdb/util.py b/src/relenv_gdb/util.py index 7db2940..2700498 100644 --- a/src/relenv_gdb/util.py +++ b/src/relenv_gdb/util.py @@ -1,4 +1,4 @@ -# Copyright 2023 VMware, Inc. +# Copyright 2023-2024 VMware, Inc. # SPDX-License-Identifier: Apache-2.0 """ Utility methods.