Browse Source

Fix Mac OS build

you still need to export LDFLAGS=-L/usr/lib/ though
PYADPT-55
heck 5 years ago
parent
commit
75c7da3d80
  1. 8
      setup.py

8
setup.py

@ -173,12 +173,12 @@ class BuildExtCommand(build_ext):
] ]
else: else:
HOME = environ.get('PER_USER_DIRECTORY') or environ.get('HOME') HOME = environ.get('PER_USER_DIRECTORY') or environ.get('HOME')
PEPLIBNAME = 'libpEpEngine.so' PEPLIBNAME = 'pEpEngine.so'
LIBPEPA = 'libpEpAdapter.a' LIBPEPA = 'libpEpAdapter.a'
BOOSTLIBNAME = 'libboost_python37.so' BOOSTLIBNAME = 'boost_{boost_python:s}-mt.so'
SYS_INCLUDES = ['/usr/local/pEp/include', '/usr/local/include', '/usr/include'] SYS_INCLUDES = ['/usr/local/pEp/include', '/usr/local/include', '/usr/include']
SYS_SHARES = ['/usr/local/pEp/share', '/usr/local/share', '/usr/share'] SYS_SHARES = ['/usr/local/pEp/share', '/usr/local/share', '/usr/share']
SYS_LIB_PREFIXES = ['/usr/local/pEp/bin', '/usr/local/bin', '/usr/bin', '/usr/lib/x86_64-linux-gnu/'] SYS_LIB_PREFIXES = ['/usr/local/pEp/bin', '/usr/local/bin', '/usr/bin']
use_local_incl = (self.local or os.path.isfile( use_local_incl = (self.local or os.path.isfile(
join(HOME, 'include', 'pEp', 'pEpEngine.h')) ) join(HOME, 'include', 'pEp', 'pEpEngine.h')) )
@ -251,7 +251,7 @@ class BuildExtCommand(build_ext):
global module_pEp global module_pEp
extend_once( module_pEp.include_dirs, [ENGINE_INC, LIBPEPA_INC, BOOST_INC, ASN1C_INC] ) extend_once( module_pEp.include_dirs, [ENGINE_INC, LIBPEPA_INC, BOOST_INC, ASN1C_INC] )
extend_once( module_pEp.library_dirs, [ENGINE_LIB, LIBPEPA_LIB, BOOST_LIB] ) extend_once( module_pEp.library_dirs, [ENGINE_LIB, LIBPEPA_LIB, BOOST_LIB] )
extend_once( module_pEp.libraries, ['pEpEngine', 'boost_python3', 'boost_locale'] ) extend_once( module_pEp.libraries, ['pEpEngine', 'boost_python37-mt', 'boost_locale-mt'] )
if self.debug: if self.debug:
module_pEp.extra_compile_args = ['-O0', '-g', '-UNDEBUG', '-std=c++14'] module_pEp.extra_compile_args = ['-O0', '-g', '-UNDEBUG', '-std=c++14']

Loading…
Cancel
Save