Skip to content

Commit

Permalink
Merge pull request #144 from skalenetwork/bug/fix-python-nightl
Browse files Browse the repository at this point in the history
fix includes
  • Loading branch information
olehnikolaiev authored Jul 5, 2021
2 parents 20ce6ea + 313d622 commit a11ed2d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: libBLS Nightly Tests
on:
schedule:
- cron: '0 0 * * *'

workflow_dispatch:

jobs:
main_job:
Expand Down
27 changes: 14 additions & 13 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit a11ed2d

Please sign in to comment.