Skip to content
Snippets Groups Projects
Commit 06997dc4 authored by Dominique Benielli's avatar Dominique Benielli
Browse files

Update setup.py

parent 75d518a7
No related branches found
No related tags found
No related merge requests found
Pipeline #11894 failed
...@@ -50,7 +50,7 @@ import multimodal ...@@ -50,7 +50,7 @@ import multimodal
try: try:
import numpy import numpy
except: except:
raise 'Cannot build iw without numpy'( raise 'Cannot build iw without numpy'
sys.exit() sys.exit()
# -------------------------------------------------------------------- # --------------------------------------------------------------------
...@@ -71,7 +71,7 @@ def get_version(): ...@@ -71,7 +71,7 @@ def get_version():
v_text_formted = '{"' + v_text.replace('\n', '","').replace(':', '":"') v_text_formted = '{"' + v_text.replace('\n', '","').replace(':', '":"')
v_text_formted += '"}' v_text_formted += '"}'
v_dict = eval(v_text_formted) v_dict = eval(v_text_formted)
return v_dict["multimodal"]( return v_dict["multimodal"]
######################## ########################
# Set Multimodal __version__ # Set Multimodal __version__
...@@ -92,9 +92,9 @@ for restring in relist: ...@@ -92,9 +92,9 @@ for restring in relist:
def wselect(args, dirname, names): def wselect(args, dirname, names):
for n in names: for n in names:
for rev in reclean:( for rev in reclean:
if (rev.match(n)): if (rev.match(n)):
os.remove("%s/%s" %(dirname, n))( os.remove("%s/%s" %(dirname, n))
break break
...@@ -110,7 +110,7 @@ class clean(_clean): ...@@ -110,7 +110,7 @@ class clean(_clean):
clean.run(self) clean.run(self)
if os.path.exists('build'): if os.path.exists('build'):
shutil.rmtree('build') shutil.rmtree('build')
for dirpath, dirnames, filenames in os.walk('iw'):( for dirpath, dirnames, filenames in os.walk('iw'):
for filename in filenames: for filename in filenames:
if (filename.endswith('.so') or if (filename.endswith('.so') or
filename.endswith('.pyd') or filename.endswith('.pyd') or
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment