Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wheel name #3

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-hooks/check_changelog_entries.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-hooks/copyright_headers.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 12 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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",
}
}
)
7 changes: 6 additions & 1 deletion src/relenv_gdb/build.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 VMware, Inc.
# Copyright 2023-2024 VMware, Inc.
# SPDX-License-Identifier: Apache-2.0
#
"""
Expand All @@ -9,6 +9,7 @@
import pathlib
import shutil
import subprocess
import sys
import tempfile

import relenv.buildenv
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/relenv_gdb/dbg.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/relenv_gdb/gdbinit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 VMware, Inc.
# Copyright 2023-2024 VMware, Inc.
# SPDX-License-Identifier: Apache-2.0
#
"""
Expand Down
2 changes: 1 addition & 1 deletion src/relenv_gdb/inject.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/relenv_gdb/util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 VMware, Inc.
# Copyright 2023-2024 VMware, Inc.
# SPDX-License-Identifier: Apache-2.0
"""
Utility methods.
Expand Down
Loading