nixpkgs/pkgs/development/python-modules
aszlig ff15c31c37
python-wrapper: Fix handling __future__ imports.
The bazaar package is still broken even with 5f01cc7, because __future__
imports need to be the first imports before anything else. So this time
I'm going to make the sed expression with explicit branching so we can
properly match all the occasions we want to skip and insert the line
modifying sys.argv[0] only _once_ and leave the command block after
that one substitution. So no ugly swaps between hold and pattern space.

The label which is resonsible for not escaping the command block is "r"
and we jump to it as long as we need to skip something from the start of
the file.

While at it, I'm not only skipping every line with __future__ in it but
also backslashes at the end of the line, so for example:

```python
from __future__ import shiny_feature1, \
                       shiny_feature2, \
                       shiny_feature3
```

... will now be properly skipped as well.

Tested against bazaar and nixops.

Thanks to @edolstra for reporting this.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-07-29 06:40:39 +02:00
..
4suite 4suite: mark as broken 2014-06-22 20:52:52 +02:00
blivet
bsddb3 Move all db4 packages to the default db5 2014-02-15 12:03:02 +01:00
buildout-nix
dbus Turn some license strings into lib.licenses values 2014-07-28 11:31:14 +02:00
distutils-cfg pythonPackages: distutils-cfg, allow to override config 2014-03-13 11:33:11 +01:00
ecdsa electrum: initial expression 2014-03-23 11:22:57 -04:00
generic python-wrapper: Fix handling __future__ imports. 2014-07-29 06:40:39 +02:00
gyp
irclib
libsexy
mygpoclient added platform meta information to gpodder 2014-07-22 09:39:06 +02:00
numeric
pil Create a PIL symlink when installing PIL so the recommended way of importing PIL.something works 2014-06-11 10:01:15 +04:00
psyco
pycairo pycairo: fix for python-3.4 by LFS patches 2014-05-20 12:44:09 +02:00
pycangjie Add pycangjie 2014-02-02 14:54:40 +01:00
pycrypto Merge #2638: fix weechat build on darwin 2014-06-09 19:37:06 +02:00
pycups
pyexiv2
pygame Turn some license strings into lib.licenses values 2014-07-28 11:31:14 +02:00
pygobject pygobject3: update 3.10.2 -> 3.12.1 2014-05-20 13:37:09 +02:00
pygtk Update pygtk to 2.24.0 to fix CPU pegging issues in xpra 2014-05-08 00:53:07 +12:00
pylint pylint: update to version 1.2.1 2014-05-13 16:11:06 +02:00
pyopenssl
pyqt kde4(10).pykde4: fix build via downgrading sip and pyqt4 2014-01-16 08:59:31 +01:00
pyside
pyx Turn some license strings into lib.licenses values 2014-07-28 11:31:14 +02:00
pyxml
rbtools
recursive-pth-loader
rhpl
setuptools fix pypy and pypyPackages 2014-03-07 14:34:06 +01:00
sip kde4(10).pykde4: fix build via downgrading sip and pyqt4 2014-01-16 08:59:31 +01:00
slowaes Fix tarball 2014-03-24 00:16:42 -04:00
stringtemplate
tables tables: Define license 2014-07-05 21:41:04 +02:00
wxPython Add wxPython-3.0 with OpenGL support. 2014-03-25 22:35:25 +01:00
xmpppy
boto-1.9-python-2.7.patch
fedpkg-buildfix.diff Add fedpkg, koji &c. + their python dependencies. 2014-02-08 14:37:53 +01:00
rpkg-buildfix.diff Add fedpkg, koji &c. + their python dependencies. 2014-02-08 14:37:53 +01:00
sqlalchemy-0.7.10-test-failures.patch
tarsnapper-path.patch pythonPackages.tarsnapper: New expression 2014-01-25 10:30:35 +00:00
virtualenv-change-prefix.patch #492 python-virtualenv: make modules of the python wrapper available 2014-04-18 18:08:49 +02:00