Files
2012-02-21 01:15:00 -05:00

1 line
5.3 KiB
JSON

[{"user_id": 1806, "stars": [], "topic_id": 36948, "date_created": 1306443034.5837021, "message": "I could do: pip freeze | cut -d= -f1 > to-delete.txt && pip uninstal to-delete.txt", "group_id": 81, "id": 1196039}, {"user_id": 1806, "stars": [], "topic_id": 36948, "date_created": 1306442922.4845099, "message": "Does anyone else ever need to flush and recreate a virtualenv (without removing it directly as I have scripts in the bin folder)?", "group_id": 81, "id": 1196005}, {"user_id": 1127, "stars": [], "topic_id": 36948, "date_created": 1306444998.5718589, "message": "why bother deleting packages?", "group_id": 81, "id": 1196312}, {"user_id": 1806, "stars": [], "topic_id": 36948, "date_created": 1306442991.080235, "message": "I have various git branches where I play with different extensions but they all end up in the virtualenv and don't go away when I switch back to master. I could do with a way of flushing the virtualenv so I can recreate it from requirements.txt", "group_id": 81, "id": 1196025}, {"user_id": 1127, "stars": [{"date_created": 1306584770.651921, "user_id": 927}], "topic_id": 36948, "date_created": 1306445015.2382569, "message": "They dont really matter if they're not imported, and if you're properly versioning packages you wont have conflicts", "group_id": 81, "id": 1196314}, {"user_id": 15523, "stars": [], "topic_id": 36948, "date_created": 1306446234.667763, "message": "I've ran into this several times and its easy to do. Make sure your virtualenv dirs are not versioned and just wipe them out; rm -rf bin lib include src and then init your project again; cd ..; mkvirutal env proj; workon proj; pip install -r requirements.txt. Something like that.", "group_id": 81, "id": 1196511}, {"user_id": 1806, "stars": [], "topic_id": 36948, "date_created": 1306447018.5914719, "message": "@zeeg This is usually after Hudson tells me the build is failing from a missing dependency.", "group_id": 81, "id": 1196616}, {"user_id": 1806, "stars": [], "topic_id": 36948, "date_created": 1306447061.8064311, "message": "@derrickpetzold That works but I don't want to throw away my bin folder within the virtualenv", "group_id": 81, "id": 1196624}, {"user_id": 1806, "stars": [], "topic_id": 36948, "date_created": 1306446993.9452209, "message": "@zeeg Sometimes I do need to add something to requirements.txt but it's not always easy to spot it from the long list from pip freeze.", "group_id": 81, "id": 1196614}, {"user_id": 2588, "stars": [], "topic_id": 36948, "date_created": 1306449644.1153531, "message": "Alternatively you could achieve something similar using virtualenv-wrapper and a git post-checkout hook that would run `workon myproj_branchname; pip install -r requirements.txt`", "group_id": 81, "id": 1197082}, {"user_id": 2588, "stars": [], "topic_id": 36948, "date_created": 1306449672.3149991, "message": "..er that should have been virtualenvwrapper http://www.doughellmann.com/projects/virtualenvwrapper/", "group_id": 81, "id": 1197090}, {"user_id": 2588, "stars": [], "topic_id": 36948, "date_created": 1306449464.7097249, "message": "If you're not averse to having multiple virtualenvs (one for each branch presumably) you might check out tox: http://codespeak.net/tox/", "group_id": 81, "id": 1197052}, {"user_id": 2588, "stars": [], "topic_id": 36948, "date_created": 1306453343.2973299, "message": "See https://convore.com/virtualenvwrapper/speeding-up-virtualenv-creation/ for more details", "group_id": 81, "id": 1197666}, {"user_id": 1736, "stars": [{"date_created": 1306453114.646663, "user_id": 2588}, {"date_created": 1311079116.36148, "user_id": 927}], "topic_id": 36948, "date_created": 1306452394.8453431, "message": "This is why your build server should be starting from scratch with --ignore-site-packages each time ;-)", "group_id": 81, "id": 1197523}, {"user_id": 2588, "stars": [], "topic_id": 36948, "date_created": 1306453123.8384449, "message": "s/ignore/no", "group_id": 81, "id": 1197631}, {"user_id": 2588, "stars": [], "topic_id": 36948, "date_created": 1306453336.537137, "message": "If you don't mind running a branch of pip, you can get a potentially big speedup installing dependencies if you use a download cache.", "group_id": 81, "id": 1197665}, {"user_id": 6648, "stars": [], "topic_id": 36948, "date_created": 1306456721.384603, "message": "I reinstall fresh each time. You can run a local chishop server to avoid redownloading.", "group_id": 81, "id": 1198165}, {"user_id": 1806, "stars": [], "topic_id": 36948, "date_created": 1306484561.2135789, "message": "@unbracketed That's a good idea. Having a separate virtualenv per git branch is the most conceptually clean way of handling it, and using git-hooks would work well. I'd still like a good way of flushing and re-installing a virtualenv though.", "group_id": 81, "id": 1202450}, {"user_id": 20097, "stars": [], "topic_id": 36948, "date_created": 1306549662.9094639, "message": "How about virtualenv --clear . (There is a dot at the end)", "group_id": 81, "id": 1210803}, {"user_id": 1127, "stars": [], "topic_id": 36948, "date_created": 1306571568.8812959, "message": "@madhavbnk probably worth explaining what that dot equates to (venv path)", "group_id": 81, "id": 1211709}, {"user_id": 20097, "stars": [], "topic_id": 36948, "date_created": 1309618114.57816, "message": "dot over there refers to the current directory", "group_id": 81, "id": 1548049}]