Skip to content

Commit

Permalink
Increase verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Aug 16, 2024
1 parent 165c471 commit 22026dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/python-publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
CIBW_ARCHS_LINUX: "x86_64 i686 aarch64" # ppc64le s390x really slow
CIBW_ARCHS_WINDOWS: "AMD64" # ARM64 Seems ARM64 will rebuild amd64 wheel for unknow reason.
CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-* cp312-*"
CIBW_BUILD_VERBOSITY: 1
CIBW_SKIP: ""
with:
package-dir: bindings/python
Expand Down
10 changes: 7 additions & 3 deletions bindings/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,17 @@ def run(self):
print("Proper 'develop' support unavailable.")

if 'bdist_wheel' in sys.argv and '--plat-name' not in sys.argv:
# Platform tags are described here:
# https://packaging.python.org/en/latest/specifications/platform-compatibility-tags
idx = sys.argv.index('bdist_wheel') + 1
sys.argv.insert(idx, '--plat-name')
name = get_platform()
pyversion = platform.python_version()
major_version, minor_version = map(int, pyversion.split('.')[:2])
sys.argv.insert(idx + 1, name.replace('.', '_').replace('-', '_') + "_" + str(major_version) + str(minor_version))
sys.argv.insert(idx + 1, name.replace('.', '_').replace('-', '_'))
print("\n###########################")
print(sys.argv)
print("###########################\n")

# exit(0)
setup(
provides=['capstone'],
packages=['capstone'],
Expand Down

0 comments on commit 22026dd

Please sign in to comment.