Commit 8b3e4f08 authored by ale's avatar ale

Fix top_srcdir variable name

parent db7d4a85
......@@ -5,22 +5,22 @@ from distutils.core import setup, Extension
SRCDIR = os.getenv('SRCDIR', '.')
BUILDDIR = os.getenv('BUILDDIR', SRCDIR)
SSO_LIB_DIR = os.getenv('SSO_LIB_DIR', '.')
libsso_srcdir = os.path.join(SRCDIR, '..')
top_srcdir = os.path.join(SRCDIR, '..')
# If BUILD_MODULE is not defined, bundle libsso into the Python
# extension so that this package is pip-installable directly.
ext_sources = ['sso/sso.i']
libraries = ['sso']
if not os.getenv('BUILD_MODULE'):
ext_sources.extend(os.path.join(libsso_srcdir, 'sso', x) for x in [
ext_sources.extend(os.path.join(top_srcdir, 'sso', x) for x in [
'base64.c', 'randombytes.c', 'sso.c', 'tweetnacl.c',
])
libraries = []
setup(name='sso',
ext_modules=[Extension('sso._sso_c', ext_sources,
swig_opts=['-c++', '-modern', '-I' + libsso_srcdir],
include_dirs=[libsso_srcdir],
swig_opts=['-c++', '-modern', '-I' + top_srcdir],
include_dirs=[top_srcdir],
libraries=libraries,
library_dirs=[SSO_LIB_DIR],
)],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment