Skip to content

Commit

Permalink
Run the custom CleanCommand for setup.py clean
Browse files Browse the repository at this point in the history
  • Loading branch information
akkana committed Dec 15, 2016
1 parent 39dc5bd commit b5d2c10
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions setup.py
Expand Up @@ -18,9 +18,8 @@ def get_version_re():
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
print "Returning version '%s'" % version_match.group(1)
return version_match.group(1)
print "No version!"
print "No version information!"
return None

# Some people recommend this, but it returns '-0.6-' rather than '0.6'
Expand Down Expand Up @@ -66,6 +65,9 @@ def run(self):
'console_scripts': [
'metapho=metapho.gtkpho.main:main'
]
},

cmdclass={
'clean': CleanCommand,
}
)

0 comments on commit b5d2c10

Please sign in to comment.