Skip to content

Commit

Permalink
static lib for asm
Browse files Browse the repository at this point in the history
  • Loading branch information
wjblanke committed Jun 7, 2023
1 parent 6df6550 commit fc70696
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,6 @@ def __str__(self):
return pybind11.get_include(self.user)


os.system('ml64 /c /Fo blst/build/add_mod_256-x86_64.o blst/build/add_mod_256-x86_64.asm')
os.system('ml64 /c /Fo blst/build/add_mod_384-x86_64.o blst/build/add_mod_384-x86_64.asm')
os.system('ml64 /c /Fo blst/build/add_mod_384x384-x86_64.o blst/build/add_mod_384x384-x86_64.asm')
os.system('ml64 /c /Fo blst/build/ct_inverse_mod_256-x86_64.o blst/build/ct_inverse_mod_256-x86_64.asm')
os.system('ml64 /c /Fo blst/build/ct_is_square_mod_384-x86_64.o blst/build/ct_is_square_mod_384-x86_64.asm')
os.system('ml64 /c /Fo blst/build/ctq_inverse_mod_384-x86_64.o blst/build/ctq_inverse_mod_384-x86_64.asm')
os.system('ml64 /c /Fo blst/build/ctx_inverse_mod_384-x86_64.o blst/build/ctx_inverse_mod_384-x86_64.asm')
os.system('ml64 /c /Fo blst/build/div3w-x86_64.o blst/build/div3w-x86_64.asm')
os.system('ml64 /c /Fo blst/build/mulq_mont_256-x86_64.o blst/build/mulq_mont_256-x86_64.asm')
os.system('ml64 /c /Fo blst/build/mulq_mont_384-x86_64.o blst/build/mulq_mont_384-x86_64.asm')
os.system('ml64 /c /Fo blst/build/mulx_mont_256-x86_64.o blst/build/mulx_mont_256-x86_64.asm')
os.system('ml64 /c /Fo blst/build/mulx_mont_384-x86_64.o blst/build/mulx_mont_384-x86_64.asm')
os.system('ml64 /c /Fo blst/build/sha256-x86_64.o blst/build/sha256-x86_64.asm')

ext_modules = [
Extension(
"blspy",
Expand All @@ -113,21 +99,6 @@ def __str__(self):
"python-bindings/pythonbindings.cpp",
"blst/src/server.c",
],
extra_objects=[
"blst/build/add_mod_256-x86_64.o",
"blst/build/add_mod_384-x86_64.o",
"blst/build/add_mod_384x384-x86_64.o",
"blst/build/ct_inverse_mod_256-x86_64.o",
"blst/build/ct_is_square_mod_384-x86_64.o",
"blst/build/ctq_inverse_mod_384-x86_64.o",
"blst/build/ctx_inverse_mod_384-x86_64.o",
"blst/build/div3w-x86_64.o",
"blst/build/mulq_mont_256-x86_64.o",
"blst/build/mulq_mont_384-x86_64.o",
"blst/build/mulx_mont_256-x86_64.o",
"blst/build/mulx_mont_384-x86_64.o",
"blst/build/sha256-x86_64.o",
],
include_dirs=[
# Path to pybind11 headers
get_pybind_include(),
Expand All @@ -137,6 +108,7 @@ def __str__(self):
],
library_dirs=[
"libsodium/x64/Release/v142/static",
"src/blstasm",
],
libraries=["Advapi32", "libsodium"],
language="c++",
Expand Down

0 comments on commit fc70696

Please sign in to comment.