Skip to content

Commit cab4ca1

Browse files
committed
a
1 parent b32dcfd commit cab4ca1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

bindings/python/setup.py.in

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,14 @@ LIBS = '@LIBS@'
1818
all_libs = shlex.split(LIBS + ' ' + OPENPACE_LIBS + ' ' + CRYPTO_LIBS)
1919
all_cflags = shlex.split(CPPFLAGS + ' ' + CFLAGS + ' ' + OPENPACE_CFLAGS + ' ' + CRYPTO_CFLAGS)
2020

21-
import shutil
21+
import shutil, glob
2222
import os
23-
shutil.copyfile('../eac.i', 'eac.i')
24-
os.system('pwd')
25-
os.system('ls')
23+
for file in glob.glob('../*.i'):
24+
shutil.copy(file, '.')
2625

2726
#Prepare the external module that we want to build
2827
eac_module = Extension('_eac',
29-
sources=['@srcdir@/../eac.i'],
30-
swig_opts=['-outdir', '@srcdir@/..', '-I@srcdir@/..'],
28+
sources=['eac.i'],
3129
extra_compile_args=all_cflags,
3230
extra_link_args=all_libs)
3331

0 commit comments

Comments
 (0)