Skip to content

Commit

Permalink
- Changed version to 2.2.3 (#21)
Browse files Browse the repository at this point in the history
- Add sdist upload to pypi.
- Fixed Illegal Instruction.
  • Loading branch information
bigcat88 committed Feb 13, 2022
1 parent fea3d28 commit 6041999
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,4 @@ jobs:
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload --skip-existing wheelhouse/*.whl
run: twine upload --skip-existing wheelhouse/*
2 changes: 1 addition & 1 deletion hexhamming/_version.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const char _version[] = "2.2.2";
const char _version[] = "2.2.3";
7 changes: 1 addition & 6 deletions hexhamming/python_hexhamming.cc
Original file line number Diff line number Diff line change
Expand Up @@ -476,12 +476,7 @@ inithexhamming(void)
#endif
USE__EXTRA
#endif
if (cpu_capabilities != 0) {
snprintf(cpu_not_support_msg, sizeof(cpu_not_support_msg),
"CPU doesnt support this feature. {%X}", cpu_capabilities);
}
else
snprintf(cpu_not_support_msg, sizeof(cpu_not_support_msg), "CPU doesnt support this feature.");
snprintf(cpu_not_support_msg, sizeof(cpu_not_support_msg), "CPU doesnt support this feature. {%X}", cpu_capabilities);
#if PY_MAJOR_VERSION >= 3
PyObject *module = PyModule_Create(&hexhammingdef);
#else
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def get_version():
extra_compile_args.append("-mcpu=apple-m1")
elif uname().system == 'Windows':
extra_compile_args.append("-O2")
extra_compile_args.append("/d2FH4-")
else:
extra_compile_args.append("-march=native")

Expand Down

0 comments on commit 6041999

Please sign in to comment.