diff options
author | Jenkins <jenkins@review.openstack.org> | 2013-06-11 13:40:50 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-06-11 13:40:50 +0000 |
commit | eec909b6b44b769ea4fbb218a80034f012ed6af8 (patch) | |
tree | 5d98606b27915db75df5c730e4747aa0035bbcbe | |
parent | 48100ec56808a8993e21a5d50bea8e0effa982c5 (diff) | |
parent | 0fea9c036e77a5c6b4d829a41b8a5770f9c4a9f0 (diff) | |
download | oslo-version-eec909b6b44b769ea4fbb218a80034f012ed6af8.tar.gz |
Merge "Use pip instead of easy_install for installation."
-rwxr-xr-x | setup.py | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -14,6 +14,19 @@ # See the License for the specific language governing permissions and # limitations under the License. +import os +import sys + +try: + sys.path += [x for x in os.listdir(".") if x.endswith(".egg")] + import d2to1 # flake8: noqa +except ImportError: + import subprocess + if not subprocess.call( + [sys.executable] + + "-m pip.__init__ install distribute<0.7 d2to1>=0.2.10,<0.3".split() + ): + sys.exit(subprocess.call([sys.executable] + sys.argv)) import setuptools setuptools.setup( |