Skip to content

Commit

Permalink
remove cleaning from setup.py (iiasa#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
gidden committed Feb 25, 2019
1 parent 8cd9237 commit 3e30b57
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,29 +34,6 @@
}


class Cmd(install):
"""Custom clean command to tidy up the project root."""

def initialize_options(self):
install.initialize_options(self)

def finalize_options(self):
install.finalize_options(self)

def _clean_dirs(self):
dirs = [
'message_ix.egg-info',
'build',
]
for d in dirs:
print('removing {}'.format(d))
shutil.rmtree(d)

def run(self):
install.run(self)
self._clean_dirs()


def all_subdirs(path, strip=None):
paths = []
for root, dirnames, filenames in os.walk(path):
Expand All @@ -82,7 +59,6 @@ def main():
],
}
cmdclass = {
'install': Cmd,
}
pack_data = {
# for some reason the model/ directory had to be added separately
Expand Down

0 comments on commit 3e30b57

Please sign in to comment.