)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":13997,"name":"SHIGEMATSU Mitsuhiro","email":"shigematsu.mitsuhiro@lab.ntt.co.jp","username":"pshige"},"change_message_id":"cf94d03fc8941ab23ff0e77c0139f622976f0943","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Check for and install easy_install"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"On Ubuntu 14.04 at least, easy_install is not present by default."},{"line_number":10,"context_line":"We need to check for it, and if its not there, add it so we canxi"},{"line_number":11,"context_line":" install pip."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: Icf5434e828ce6c15968d1f46c19a9e11b33f4ed6"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"fa32b979_3129859b","line":10,"updated":"2015-06-19 03:37:29.000000000","message":"s/canxi/can/ ?","commit_id":"6541f0e1f8d598525f922b3579fd74a8b8694622"},{"author":{"_account_id":11555,"name":"Peter Martini","email":"pmartini2@bloomberg.net","username":"PeterMartini"},"change_message_id":"3fcd97fe50a85e97de28fc29c910f4cabd457727","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Check for and install easy_install"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"On Ubuntu 14.04 at least, easy_install is not present by default."},{"line_number":10,"context_line":"We need to check for it, and if its not there, add it so we canxi"},{"line_number":11,"context_line":" install pip."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: Icf5434e828ce6c15968d1f46c19a9e11b33f4ed6"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"fa32b979_5fd764ed","line":10,"in_reply_to":"fa32b979_3129859b","updated":"2015-06-19 12:13:45.000000000","message":"Thanks, using vi can cause fun issues late at night :-)","commit_id":"6541f0e1f8d598525f922b3579fd74a8b8694622"}],"scripts/env-setup.sh":[{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"689d7fe1aed2eb081f59c9d287666ac516366b4e","unresolved":false,"context_lines":[{"line_number":7,"context_line":"    fi"},{"line_number":8,"context_line":"    if ! $(easy_install --version \u0026\u003e/dev/null) ; then"},{"line_number":9,"context_line":"        sudo -H apt-get -y install python-setuptools"},{"line_number":10,"context_line":"    fi"},{"line_number":11,"context_line":"elif [ -x \u0027/usr/bin/yum\u0027 ]; then"},{"line_number":12,"context_line":"    if ! yum -q list installed python-devel; then"},{"line_number":13,"context_line":"        sudo -H yum -y install python-devel"}],"source_content_type":"text/x-sh","patch_set":1,"id":"fa32b979_71938d5b","line":10,"updated":"2015-06-19 03:05:36.000000000","message":"Uhh, easy_install !\u003d setuptools. eas_install is a thing that is in setuptools, but its much better to check for the setuptools version.\n\nNOTE: we require newer versions of setuptools than some distros have. I really suggest uninstalling the distro versions of setuptools, virtualenv and pip, and then use get-pip to get pip, and pip install -U pip wheel setuptools to get the latest of those things.\n\nBut.. doing the distro thing - if you want to ensure setuptools is installed, just do an unconditional install. apt-get install thing-thats-installed is approximately free.","commit_id":"6541f0e1f8d598525f922b3579fd74a8b8694622"},{"author":{"_account_id":11555,"name":"Peter Martini","email":"pmartini2@bloomberg.net","username":"PeterMartini"},"change_message_id":"3fcd97fe50a85e97de28fc29c910f4cabd457727","unresolved":false,"context_lines":[{"line_number":7,"context_line":"    fi"},{"line_number":8,"context_line":"    if ! $(easy_install --version \u0026\u003e/dev/null) ; then"},{"line_number":9,"context_line":"        sudo -H apt-get -y install python-setuptools"},{"line_number":10,"context_line":"    fi"},{"line_number":11,"context_line":"elif [ -x \u0027/usr/bin/yum\u0027 ]; then"},{"line_number":12,"context_line":"    if ! yum -q list installed python-devel; then"},{"line_number":13,"context_line":"        sudo -H yum -y install python-devel"}],"source_content_type":"text/x-sh","patch_set":1,"id":"fa32b979_ffdbd81f","line":10,"in_reply_to":"fa32b979_71938d5b","updated":"2015-06-19 12:13:45.000000000","message":"This is strictly for bootstrapping; the call just a few lines down to add pip uses \u0027easy_install\u0027, and a vanilla Ubuntu install fails since easy_install isn\u0027t present.  After easy_install is bootstrapped - and I thought the best way to do it would be via installing python-setuptools - pip is bootstrapped properly to get the latest (as opposed to the distro) version.  Offhand, I don\u0027t know if easy_install is similarly upgraded, and if not I would think that makes sense.\n\nAs far as unconditional install- I was merely following the pattern established by git directly above.  I like that approach as well; it\u0027s conservative, testing only for the thing it absolutely needs, and installing the smallest subset of tooling that it can reasonably assume to be present.\n\nFinally, re uninstalling distro versions, and speaking solely from experience with my Ubuntu setup rather than as a categorical thing, the pip installed versions take precedence over the package manager installed ones.  So - personally - I\u0027d rather not take the more disruptive step of removing the OS version.","commit_id":"6541f0e1f8d598525f922b3579fd74a8b8694622"}]}
