5 ms·
It's still a bit new, but I think pipenv [1] is the new standard now. No need to directly work with pip or virtualenv anymore, and the equivalent requirements f
by undecidabot 8y ago
It's still a bit new, but I think pipenv [1] is the new standard now. No need to directly work with pip or virtualenv anymore, and the equivalent requirements file works more like npm/yarn.
[1] https://github.com/pypa/pipenv https://github.com/pypa/pipenv
- moosingin3space 8y agoNearly all my work at this time is in C++, Rust, Python, and JavaScript. Thanks to pipenv, Python environments finally feel on par with Rust/cargo and NodeJS/Yarn. C++, though, still a mess to get an isolated build environment there. Meson and Bazel are close, so close...
- akhilcacharya 8y agoThis sounds brilliant!
- jerf 8y agoWith all due respect to the Python community, and without intending this as an insult per se, if this really is the "current recommendation", the Python community is in no position to be criticizing the Go community on this point. This is about the fourth answer I've heard in the past 10 years. I've been programming off and on in Python for at least 15 years and I've never heard of this tool. Out of morbid curiosity, what's the current answer for "how to pack up a Python program into a single executable/directory for Windows" now?
- KyeRussell 8y agoAm I meant to justify all Python-related decisions because I choose to work with it? Does my using Python (or even my membership in 'The Python Community') disqualify me from critiquing on other languages and development environments? What does your comment add to the discussion other than snark and aggression?
- jerf 8y agoA correction to people claiming that Python's obviously got a better solution to dependency management than Go, a solution so "obvious" that a Python programmer of 15+ years hasn't heard of it yet. (No, I'm not actively programming in Python right now, but if it's so obvious and concrete I should still have known about it. I was up-to-date on best practices as of a couple of years ago!) You aren't obligated to do anything; the question is open to anybody.
- mixmastamyk 8y agoThe original post says golang should be a bit better starting twenty years later. Pipenv has only existed a year or two, qed.
- osteele 8y ago> Out of morbid curiosity, what's the current answer for "how to pack up a Python program into a single executable/directory for Windows" now? The Hitchhiker's Guide to Python[1] (HHGTP) encapsulates a lot of standard tools and best practices. I've been recommending it to students for a few years now. Last year it listed virtualenv, venv, pyenv, etc.; now it recommends just pipenv. HHGTP also has sections on "Packaging Your Code" and "Freezing Your Code". I think what you're asking about is referred to there as "freezing". The "Freezing" section of HHGTP lists some Windows tools, and contains a table comparing them. There doesn't look to be a single accepted one. A G^nP post did criticize Go compared to Python, but I don't believe the author speaks for “the Python community”. [1] http://docs.python-guide.org/en/latest/ http://docs.python-guide.org/en/latest/