aszlig
5f01cc70d3
python-wrapper: Fix fixup for wrapped argv[0].
...
Fixes issues introduced by 24ef871e6a
.
The problem here is that "import sys; sys.argv[0] = ..." is just
appended after the first "#!", which in turn breaks things such as
encoding specifications. A second problem - although not very common -
is when there's another #! within the script.
This should take care of both cases.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-07-28 04:18:21 +02:00
Christian Theune
24ef871e6a
python: fix argv[0] for wrapped console_scripts.
...
Previously programs would see '.<program>-wrapped' as their program name. This is a workaround
but should be reasonably safe and reliable.
2014-07-27 13:23:15 +02:00
Domen Kozar
649e7d6fdb
python wrap.sh: wrap pypy and python shebangs
2014-03-07 16:50:46 +01:00
Domen Kozar
fedd018d93
fix pypy and pypyPackages
2014-03-07 14:34:06 +01:00
Domen Kozar
7458f29dc9
don't wrap scripts in EGG-INFO/scripts since they are called from python
2013-07-29 19:31:58 +02:00
Eelco Dolstra
5bb548d2e4
Merge remote-tracking branch 'origin/master' into stdenv-updates
2013-01-17 14:19:14 +01:00
Florian Friesdorf
24d48d9170
don't put propagated recursivePthLoader into pth file, #257
2013-01-11 18:04:27 +01:00
Eelco Dolstra
ab3eeabfed
Rename buildNativeInputs -> nativeBuildInputs
...
Likewise for propagatedBuildNativeInputs, etc. "buildNativeInputs"
sounds like an imperative rather than a noun phrase.
2012-12-28 19:20:09 +01:00
Florian Friesdorf
f8d3671629
fix pth files
2012-07-22 02:08:00 +02:00
Florian Friesdorf
a40da09b44
python: create pth files for python build inputs (propagate/native or not)
2012-07-21 01:55:50 +02:00
Eelco Dolstra
353d450867
* wrapPythonPrograms: don't hard-code the Python library prefix.
...
svn path=/nixpkgs/branches/modular-python/; revision=26594
2011-03-29 15:19:59 +00:00
Eelco Dolstra
968496e69b
* wrapPythonPrograms: rewrite the common "#! .../env python" idiom to
...
"#! .../python".
svn path=/nixpkgs/branches/modular-python/; revision=26583
2011-03-28 17:19:27 +00:00
Eelco Dolstra
47adaa80e3
* Move the wrapPythonPrograms function into a separate setup hook
...
(wrapPython).
svn path=/nixpkgs/branches/modular-python/; revision=26580
2011-03-28 16:33:33 +00:00