Skip to content

Commit

Permalink
Force setup.py install to always call build
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Nov 17, 2014
1 parent ef32156 commit 7479da7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup.py
Expand Up @@ -202,6 +202,15 @@ def find_make(alt=('gmake', 'gnumake', 'make', 'nmake')):
cmdclass = {}
packages = []


# 'install doesn't always call build for some reason
if 'install' in sys.argv and 'build' not in sys.argv:
_index = sys.argv.index('install')
sys.argv[:] = (
sys.argv[:_index] + ['build', 'install'] + sys.argv[_index + 1:]
)


setup(
name='librabbitmq',
version=version,
Expand Down

0 comments on commit 7479da7

Please sign in to comment.