From 313d622ed2441c55c599be12fe4793bf391ff184 Mon Sep 17 00:00:00 2001 From: Oleh Nikolaiev Date: Mon, 5 Jul 2021 15:37:36 +0300 Subject: [PATCH] fix includes --- .github/workflows/nightly.yml | 2 ++ python/setup.py | 27 ++++++++++++++------------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 9d8dc13c..b95f236c 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -3,6 +3,8 @@ name: libBLS Nightly Tests on: schedule: - cron: '0 0 * * *' + + workflow_dispatch: jobs: main_job: diff --git a/python/setup.py b/python/setup.py index c3f5ad4f..f8fb1461 100755 --- a/python/setup.py +++ b/python/setup.py @@ -5,29 +5,30 @@ from distutils.core import setup, Extension strCompilerCommonFlagsSuffix = " -fpermissive -fPIC -std=c++11 -Wno-error=parentheses -Wno-error=char-subscripts" -os.environ["CC" ] = "gcc-7" + strCompilerCommonFlagsSuffix +os.environ["CC"] = "gcc-7" + strCompilerCommonFlagsSuffix os.environ["CXX"] = "g++-7" + strCompilerCommonFlagsSuffix -os.environ["LD" ] = "ld" + strCompilerCommonFlagsSuffix +os.environ["LD"] = "ld" + strCompilerCommonFlagsSuffix -extras_require= { +extras_require = { "codecov==2.1.11" } dkgpython_module = Extension('dkgpython', - sources = ['dkgpython.cpp'], - include_dirs = ['..', '../bls', '../dkg', '../third_party', '../deps/', + sources=['dkgpython.cpp'], + include_dirs=['..', '../bls', '../dkg', '../third_party', '../deps/', '../deps/deps_inst/x86_or_x64/include', '../deps/deps_inst/x86_or_x64/include/libff'], - library_dirs = ['../build', '../deps/deps_inst/x86_or_x64/lib', - '../deps/deps_inst/x86_or_x64/lib/libff'], + library_dirs=['../build', '../deps/deps_inst/x86_or_x64/lib', + '../deps/deps_inst/x86_or_x64/lib/libff', '../deps/deps_inst/x86_or_x64/lib/libgmp', + '../deps/deps_inst/x86_or_x64/lib/libgmpxx'], - libraries = ['bls', 'ff', 'gmpxx', 'gmp'] + libraries=['bls', 'ff', 'gmpxx', 'gmp'] ) -setup(name = 'dkgpython', - version = '0.1.0', - description = 'dkgpython module written in C++', - ext_modules = [dkgpython_module], - extras_require = extras_require +setup(name='dkgpython', + version='0.1.0', + description='dkgpython module written in C++', + ext_modules=[dkgpython_module], + extras_require=extras_require )