aloof-angle-91616
04/22/2019, 11:25 PM'{}_py36'.format(pants_version)?witty-crayon-22786
04/22/2019, 11:25 PMwitty-crayon-22786
04/22/2019, 11:27 PMlatest ? and we don't know what that is without querying pip? ... we could do thathundreds-father-404
04/22/2019, 11:27 PMaloof-angle-91616
04/22/2019, 11:29 PM./pants generate-pants-ini invocation, we have generated a pants.ini with the correct pants version, so it seems reasonable that we have enough information to rename the unspecified-version cache dir to the correct version during the pants.ini generationhundreds-father-404
04/22/2019, 11:29 PMaloof-angle-91616
04/22/2019, 11:30 PMaloof-angle-91616
04/22/2019, 11:30 PMhundreds-father-404
04/22/2019, 11:30 PMaloof-angle-91616
04/22/2019, 11:32 PMgenerate-pants-ini task then or somethingwitty-crayon-22786
04/22/2019, 11:32 PMaloof-angle-91616
04/22/2019, 11:32 PMaloof-angle-91616
04/22/2019, 11:32 PMhundreds-father-404
04/22/2019, 11:42 PMhundreds-father-404
04/22/2019, 11:50 PMvenv_folder = sys.exec_path
if venv_folder.endswith("unspecified_py*"}:
os.rename(venv_folder, new_name)
Tbd if renaming the parent folder for the currently running sys.executable is a recipe for disaster. Trying now..witty-crayon-22786
04/22/2019, 11:51 PMaloof-angle-91616
04/22/2019, 11:51 PMhundreds-father-404
04/22/2019, 11:53 PMaloof-angle-91616
04/22/2019, 11:53 PMwitty-crayon-22786
04/22/2019, 11:54 PMwitty-crayon-22786
04/22/2019, 11:55 PMhundreds-father-404
04/22/2019, 11:56 PMgenerate_pants_ini.py in only a few minutes. Bigger concern is how to test itwitty-crayon-22786
04/22/2019, 11:56 PMwitty-crayon-22786
04/22/2019, 11:57 PMhundreds-father-404
04/22/2019, 11:58 PMit would only work for virtualenvs probably? imo, not worth it.You mean no need for a test? That would be nice to me. I can upload a draft PR in the next few minutes to see what you all think
aloof-angle-91616
04/22/2019, 11:58 PMwitty-crayon-22786
04/22/2019, 11:58 PMaloof-angle-91616
04/22/2019, 11:58 PMaloof-angle-91616
04/22/2019, 11:58 PMaloof-angle-91616
04/22/2019, 11:59 PMunspecified_py36 diraloof-angle-91616
04/22/2019, 11:59 PMhundreds-father-404
04/22/2019, 11:59 PMhundreds-father-404
04/23/2019, 12:20 AM_py36 naming scheme, has no impact.enough-analyst-54434
04/23/2019, 12:40 AMhundreds-father-404
04/23/2019, 12:41 AMenough-analyst-54434
04/23/2019, 12:41 AMenough-analyst-54434
04/23/2019, 12:41 AMenough-analyst-54434
04/23/2019, 12:42 AM$ curl -sSL <https://pypi.python.org/pypi/pantsbuild.pants/json> | python -c "import json, sys; print(json.load(sys.stdin)['info']['version'])"
1.15.0hundreds-father-404
04/23/2019, 12:43 AMenough-analyst-54434
04/23/2019, 12:43 AMhundreds-father-404
04/23/2019, 12:45 AMhundreds-father-404
04/23/2019, 12:49 AMaloof-angle-91616
04/23/2019, 12:49 AMhundreds-father-404
04/23/2019, 12:50 AM