aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2016-08-14 05:03:34 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2016-08-14 05:03:34 +0300
commit0ef56b3a58bceca835b7f450fea5df4b55d29a01 (patch)
tree73058b8d99a8e05c3986ab38f8e1ca93c31d47e5
parentsetup.py: Blacklist Cython 0.24 (diff)
downloadpython-efl-0ef56b3a58bceca835b7f450fea5df4b55d29a01.tar.gz
setup.py: Fix error handling in uninstall command
-rwxr-xr-xsetup.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index ff9547a..16e6c93 100755
--- a/setup.py
+++ b/setup.py
@@ -142,7 +142,8 @@ class Uninstall(Command):
print("removing file %s" % entry)
os.unlink(entry)
except OSError as e:
- error(e)
+ print(e)
+ return
directory = os.path.dirname(entry)
while os.listdir(directory) == []:
@@ -150,7 +151,8 @@ class Uninstall(Command):
print("removing empty directory %s" % directory)
os.rmdir(directory)
except OSError as e:
- error(e)
+ print(e)
+ break
directory = os.path.dirname(directory)
def run(self):