News for hackers. Stuff that matters.
Re:Show HN: Virtualenv-mv – Move (rename) Python virtualenvs by pekk on Sunday June 12, 2016 @03:01AM (#11887024)
virtualenvwrapper isn't part of virtualenv or python. Are you saying that the existence of virtualenv tells you there's something wrong?
Re:Show HN: Virtualenv-mv – Move (rename) Python virtualenvs by hkjgkjy on Sunday June 12, 2016 @03:25AM (#11887082)
I would agree to that yes, as are most (all) languages.

It would be very nice if the Python version was something specified in the project manifest. Don't know what is the popular build tool in python, but something like specifying the node.js version in the package.json file would be great.

I think the reason it never works like that is that the language is written before the package manager and VM/compiler.

In Clojure it's the other way around - the JVM and the package managers were there before the language. The Clojure compiler is a library that you include in your project.clj file like any other lib. Hence you can specify language version per project. That's a feature I would like to have in other programming environments.

Re:Show HN: Virtualenv-mv – Move (rename) Python virtualenvs by m_mueller on Sunday June 12, 2016 @03:36AM (#11887109)
No, my point is rather: Why do we need virtualenv at all (and worse, more wrappers around it)? Why should, say, pip packages have any problems with each other as long as they aren't imported directly in a python sourcefile. It seems like versioning of packages isn't solved correctly at the interpreter level, that's why we have the virtualenv crutch.
Re:Show HN: Virtualenv-mv – Move (rename) Python virtualenvs by neuroid on Sunday June 12, 2016 @08:10AM (#11887734)
Why should, say, pip packages have any problems with each other as long as they aren't imported directly in a python sourcefile.

Are you suggesting that package versions should be explicitly provided as part of import statements? Or that import statements should be mangled depending on the versions specified in setup.py?

Re:Show HN: Virtualenv-mv – Move (rename) Python virtualenvs by m_mueller on Sunday June 12, 2016 @09:18AM (#11887957)
> Are you suggesting that package versions should be explicitly provided as part of import statements?

Yep, see also my suggestion in the other subthread.