Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for Python 3 #30
With Pants soon to be released with Python 3 wheels pantsbuild/pants#7197 and the Python 3 migration nearing completion pantsbuild/pants#6062, we need to modify this setup script to allow Pants end users to consume the upgrade.
Goals for an ideal solution
Users should add
We would update the website at https://www.pantsbuild.org/install.html to provide instructions, along the lines of:
FYI the proposal has changed from the original one of using a
For the record, we could definitely turn:
pants_version=$( # use extended regexps, don't print every line # when a `pants_version: ` line is found, # replace all the text from the start of the line up to `: ` with an empty string, and print sed -rne '/\s*pants_version: / s#^.*: ##p' pants.ini 2>/dev/null # could add `| head -n1` if there might be multiple such lines )
which I personally find easier to read.