mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
* Hackery to get Python to build on Cygwin.
svn path=/nixpkgs/branches/modular-python/; revision=26694
This commit is contained in:
parent
db144edb60
commit
566d5ab26e
1 changed files with 7 additions and 1 deletions
|
@ -55,6 +55,12 @@ let
|
|||
for i in /usr /sw /opt /pkg; do
|
||||
substituteInPlace ./setup.py --replace $i /no-such-path
|
||||
done
|
||||
'' + optionalString stdenv.isCygwin ''
|
||||
# On Cygwin, `make install' tries to read this Makefile.
|
||||
mkdir -p $out/lib/python2.7/config
|
||||
touch $out/lib/python2.7/config/Makefile
|
||||
mkdir -p $out/include/python2.7
|
||||
touch $out/include/python2.7/pyconfig.h
|
||||
'';
|
||||
|
||||
NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin "-msse2";
|
||||
|
@ -128,7 +134,7 @@ let
|
|||
''
|
||||
dest=$out/lib/${python.libPrefix}/site-packages
|
||||
mkdir -p $dest
|
||||
cp -p $(find . -name "*.so") $dest/
|
||||
cp -p $(find . -name "*.${if stdenv.isCygwin then "dll" else "so"}") $dest/
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue