@@ -39,16 +39,9 @@ composableDerivation.composableDerivation {} (fixed: rec {
3939 (if netcdfSupport then "--with-netcdf=${netcdf}" else "")
4040 ];
4141
42− # Prevent this:
43− #
44− # Checking .pth file support in /nix/store/xkrmb8xnvqxzjwsdmasqmsdh1a5y2y99-gdal-1.11.2/lib/python2.7/site-packages/
45− # /nix/store/pbi1lgank10fy0xpjckbdpgacqw34dsz-python-2.7.9/bin/python -E -c pass
46− # TEST FAILED: /nix/store/xkrmb8xnvqxzjwsdmasqmsdh1a5y2y99-gdal-1.11.2/lib/python2.7/site-packages/ does NOT support .pth files
47− # error: bad install directory or PYTHONPATH
4842 preBuild = ''
49− pythonInstallDir=$out/lib/${pythonPackages.python.libPrefix}/site-packages
50− mkdir -p $pythonInstallDir
51− export PYTHONPATH=''${PYTHONPATH:+''${PYTHONPATH}:}$pythonInstallDir
43+ substituteInPlace swig/python/GNUmakefile \
44+ --replace "ifeq (\$(STD_UNIX_LAYOUT),\"TRUE\")" "ifeq (1,1)"
5245 '';
5346
5447 postInstall = ''