News for hackers. Stuff that matters.
Re:Python 3.4.0 released by Watabou on Monday March 17, 2014 @03:37AM (#7413661)
Wow, pip bundled by default. Very interesting.
Re:Python 3.4.0 released by baq on Monday March 17, 2014 @04:05AM (#7413728)
this, unicode and exceptions are IMHO good enough to start thinking about upgrading. you might say that pip is a non-issue because everybody who develops in python has it installed anyway, but in windows world deploying python apps has always been a pain (yes, i use py2exe, it's not perfect).
Re:Python 3.4.0 released by raverbashing on Monday March 17, 2014 @08:06AM (#7414545)
No, the Pip issue is huge

This makes a proper P3 Virtualenv into something good (from something barely ok in 3.3 where you need to install setuptools manually in your virtualenv)

Re:Python 3.4.0 released by jeffbr13 on Monday March 17, 2014 @09:04AM (#7414760)
Surely you could just install Python3 and pip systemwide, then ask virtualenv/virtualenvwrapper to use that one?

    virtualenv -p $(which python3) ENV                            # with virtualenv
    mkvirtualenv [-a project path] -p $(which python3) ENVNAME    # with virtualenvwrapper
Re:Python 3.4.0 released by raverbashing on Monday March 17, 2014 @09:48AM (#7414943)
Did you actually try that? No, it doesn't work

Python 3 comes with pyvenv that's the one that should be used

Re:Python 3.4.0 released by bitcrusher on Monday March 17, 2014 @12:00PM (#7415866)
Did you?

That works perfectly if you already have python3 installed.

Re:Python 3.4.0 released by pdw on Monday March 17, 2014 @11:46AM (#7415764)
How does it break? I've always used virtualenv -p /path/to/python3 and it seems to work fine.
Re:Python 3.4.0 released by raverbashing on Monday March 17, 2014 @01:37PM (#7416602)
Just tried this with virtualenv and pyvenv-3.4 and they don't produce identical results.

The good thing about 3.4 is that they finally give a good virtualenv by default and we don't need to install setuptools/pip inside manually

Re:Python 3.4.0 released by rspeer on Monday March 17, 2014 @06:05PM (#7418451)
pyvenv in Python 3.3 was immensely frustrating to use, because it leaves you without any package manager that understands your virtualenv.

I've seen this rumor that virtualenv "doesn't work" in Python 3. It seems to be propagated by people who make Python 2 virtualenvs and get confused, including a StackOverflow thread full of people basically typing commands at random to try to fix the problem. But pyvenv in 3.3 had much more potential for confusion.

The fact that Python 3.4 bundles pip may finally resolve this confusion, and make pyvenv appropriate to use. But I'm sure virtualenv will keep working fine as well as long as you don't mix up major versions of Python.

Re:Python 3.4.0 released by raverbashing on Monday March 17, 2014 @08:20PM (#7419088)
Exactly

Yes, the regular virtualenv may work with Python 3 but it's a small detail in a frustrating setup. When I finally found out how you're supposed to do in > 3.4 it was a relief, still

Just tested 3.4 as it is like in 2.X, so, problem solved and no-one has to worry about this anymore.

Re:Python 3.4.0 released by rectangletangle on Monday March 17, 2014 @03:58AM (#7413712)
Having pip and venv bundled with the standard distribution is convenient.
Re:Python 3.4.0 released by Watabou on Monday March 17, 2014 @04:01AM (#7413718)
Yeah, I'm hoping this will make it easier for people to upgrade to python 3.
Re:Python 3.4.0 released by tachion on Monday March 17, 2014 @06:37AM (#7414215)
Doesnt including those in distribution slows the pace at which they'll be developed and released?
Re:Python 3.4.0 released by babarock on Monday March 17, 2014 @06:54AM (#7414274)
I don't want pip and virtualenv to be constantly changing and evolving. We finally reached a stage where they're usable reliably. Some stability wouldn't hurt.
Re:Python 3.4.0 released by tshepang on Monday March 17, 2014 @08:41AM (#7414657)
It's just bundled, meaning it's still developed externally. In fact, 3.4.1 will include a newer pip version.
Re:Python 3.4.0 released by donaldstufft on Tuesday March 18, 2014 @12:25PM (#7422855)
Assuming we've released a newer version of pip when 3.4.1 is released :)
Re:Python 3.4.0 released by unfamiliar on Monday March 17, 2014 @04:35PM (#7417923)
Is pip actually included by default, or just an installer for pip?
Re:Python 3.4.0 released by donaldstufft on Tuesday March 18, 2014 @12:25PM (#7422843)
Both kind of!

Added to the stdlib was "ensurepip", which is a simple installer for pip. The ensurepip module includes inside of it a copy of pip that it will install from (in other words, ensurepip doesn't hit the network).

There are various reasons why it does this, part of which is to enable easy upgrades to newer versions of pip both inside of CPython itself, and for the end user to upgrade it locally.