Merge pull request #132012 from Artturin/xonsh-pythonpath

xonsh: add PYTHONPATH
This commit is contained in:
Jörg Thalheim 2021-07-30 08:20:23 +01:00 committed by GitHub
commit 0f83a6b6cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,19 @@ python3Packages.buildPythonApplication rec {
find scripts -name 'xonsh*' -exec sed -i -e "s|env -S|env|" {} \;
find -name "*.xsh" | xargs sed -ie 's|/usr/bin/env|${coreutils}/bin/env|'
patchShebangs .
substituteInPlace scripts/xon.sh \
--replace 'python' "${python3Packages.python}/bin/python"
'';
makeWrapperArgs = [
"--prefix PYTHONPATH : ${placeholder "out"}/lib/${python3Packages.python.libPrefix}/site-packages"
];
postInstall = ''
wrapProgram $out/bin/xon.sh \
$makeWrapperArgs
'';
disabledTests = [