diff options
Diffstat (limited to 'pow/POW-0.7/setup.py')
-rw-r--r-- | pow/POW-0.7/setup.py | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/pow/POW-0.7/setup.py b/pow/POW-0.7/setup.py index 13fc34dd..9ba4efc4 100644 --- a/pow/POW-0.7/setup.py +++ b/pow/POW-0.7/setup.py @@ -1,3 +1,8 @@ +# [sra] Changes here are specific to the RPKI project, in order to get POW linked +# against a copy of the OpenSSL libraries with the right options enabled. +# Unlike the other changes to this package, I don't expect this one to be +# useful to other POW users. + from distutils.core import setup, Extension import sys, os, cfgparse @@ -8,14 +13,10 @@ oidinfo.dumpobjs('lib/_objects.py') print 'writing oid module' oidinfo.dumpoids('lib/_oids.py') -if sys.platform == 'win32': - library_dirs = [ os.path.join(sys.prefix, 'bin') ] - libraries = [ 'ssleay32', 'libeay32' ] -else: - library_dirs = [ os.path.join(sys.prefix, 'lib') ] - libraries = [ 'ssl', 'crypto' ] - -include_dirs = [os.path.join(sys.prefix, 'include')] +library_dirs = [ "../openssl/openssl-0.9.8e" ] +include_dirs = [ library_dirs[0] + "include" ] +libraries = [ "ssl", "crypto" ] +define_macros= [ ("NO_RC5_32_12_16", 1) ] setup(name='POW', version='0.7', @@ -31,7 +32,8 @@ setup(name='POW', ['POW.c'], libraries=libraries, library_dirs=library_dirs, - include_dirs=include_dirs ) + include_dirs=include_dirs, + define_macros=define_macros) ]) os.remove('lib/_objects.py') |