Skip to content

Commit

Permalink
Revert "Try AVX2 on non-Windows platforms, at least"
Browse files Browse the repository at this point in the history
  • Loading branch information
James-E-A committed Feb 7, 2024
1 parent eb186d5 commit b9c0b81
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
3 changes: 0 additions & 3 deletions cffi_modules/mceliece6960119f_avx2.py

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pypqc"
version = "0.0.6.2-rc5"
version = "0.0.6.2-rc4"
description = "Python bindings for the \"PQClean\" post-quantum cryptography library."
readme = "README.rst"
urls = {"Homepage" = "https://github.com/JamesTheAwesomeDude/pypqc"}
Expand Down
17 changes: 4 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def get_tag(self):
return python, abi, plat


cffi_modules=[
setup(
cmdclass={'bdist_wheel': site_bdist_wheel},
cffi_modules=[
'cffi_modules/dilithium2_clean.py:ffi',
'cffi_modules/dilithium3_clean.py:ffi',
'cffi_modules/dilithium5_clean.py:ffi',
Expand All @@ -66,7 +68,6 @@ def get_tag(self):
'cffi_modules/mceliece460896f_clean.py:ffi',
'cffi_modules/mceliece6688128f_clean.py:ffi',
'cffi_modules/mceliece6960119f_clean.py:ffi',
'cffi_modules/mceliece6960119f_avx2.py:ffi',
'cffi_modules/mceliece8192128f_clean.py:ffi',
##'cffi_modules/mceliece6688128pcf_clean.py:ffi',
##'cffi_modules/mceliece6960119pcf_clean.py:ffi',
Expand All @@ -83,15 +84,5 @@ def get_tag(self):
'cffi_modules/sphincs-shake-192s-simple_clean.py:ffi',
'cffi_modules/sphincs-shake-256f-simple_clean.py:ffi',
'cffi_modules/sphincs-shake-256s-simple_clean.py:ffi',
]


if platform.system() == 'Windows':
for i in reversed([i for i, cffi_module in enumerate(cffi_modules) if '_avx2' in cffi_module]):
cffi_modules.pop(i)


setup(
cmdclass={'bdist_wheel': site_bdist_wheel},
cffi_modules=cffi_modules
],
)

0 comments on commit b9c0b81

Please sign in to comment.