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

Update setup.py

parent 1afe4666
Branches tffm
Tags
No related merge requests found
Pipeline #11893 failed
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
# #
# * multimodal version = 0.0.dev0 # * multimodal version = 0.0.dev0
# #
# Licence: # Licence:(
# ------- # -------
# #
# License: New BSD License # License: New BSD License
...@@ -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,7 +92,7 @@ for restring in relist: ...@@ -92,7 +92,7 @@ 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