diff options
author | rmihael <rmihael@gmail.com> | 2014-12-15 17:44:38 +0200 |
---|---|---|
committer | Ask Solem <ask@celeryproject.org> | 2015-10-30 12:11:51 -0700 |
commit | eb22f17f07d610daac60a0884d0485f9f8c7f0f8 (patch) | |
tree | bf3bca69ef0fccaa3546a9a56d5d12f8f0430fb4 | |
parent | 6f1e0132efeeb1b0a8a2895973d2db6f1a7b2b84 (diff) | |
download | librabbitmq-eb22f17f07d610daac60a0884d0485f9f8c7f0f8.tar.gz |
Update setup.py to fix buildout-related problems
There're some issues related to Buildout having troubles installing librabbitmq: https://github.com/celery/librabbitmq/issues/61, https://github.com/celery/librabbitmq/issues/58
It seems that this simple change fixes it. Not the prettiest solution, but it works.
-rw-r--r-- | setup.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -208,7 +208,13 @@ if 'install' in sys.argv and 'build' not in sys.argv: sys.argv[:] = ( sys.argv[:_index] + ['build', 'install'] + sys.argv[_index + 1:] ) - + +# 'bdist_egg doesn't always call build for some reason +if 'bdist_egg' in sys.argv and 'build' not in sys.argv: + _index = sys.argv.index('bdist_egg') + sys.argv[:] = ( + sys.argv[:_index] + ['build', 'bdist_egg'] + sys.argv[_index + 1:] + ) setup( name='librabbitmq', |