3 ms·
This should be called virtualenv-rename right, otherwise what does virtualenv --relocatable do? Python/Java using the file system to map hierarchies of classes
by andy_ppp 10y ago
This should be called virtualenv-rename right, otherwise what does virtualenv --relocatable do?
Python/Java using the file system to map hierarchies of classes is such a mistake when you start using a language like Elixir; you can move any .ex files anywhere you like within your project and it just works.
- brbsix 10y agoThe script is most akin to the Unix `mv` command, in fact it uses it, so that's why I called it virtualenv-mv. I figured this would be most easily understood. Just out of curiosity, have you used `--relocatable` much? It basically attempts to rewrite full paths into relative paths. Whereas with `virtualenv-mv`, there should be no indication that the environment has been moved. As far as `--relocatable` is concerned... I think even the author(s) regret having included it, if that gives you any indication of how useful it is.
- andy_ppp 10y agoWhy would you rename a virtualenv? They should be named "env" and you should change the prompt that pops when you enter it to be something like "(VENV: projectname)".
- 88e282102ae2e5b 10y agoYou might want to move our copy it to another directory. I had this problem recently when I wanted to use an env that had a bunch of packages that take a long time to compile, but since it didn't work I had to reinstall them in a new env.