pythonPackages.docutils: fix python3 build on darwin
This commit is contained in:
parent
9564927888
commit
db900da8d8
1 changed files with 5 additions and 7 deletions
|
@ -14,17 +14,15 @@ buildPythonPackage rec {
|
||||||
sha256 = "0x22fs3pdmr42kvz6c654756wja305qv6cx1zbhwlagvxgr4xrji";
|
sha256 = "0x22fs3pdmr42kvz6c654756wja305qv6cx1zbhwlagvxgr4xrji";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkPhase = if isPy3k then ''
|
checkPhase = ''
|
||||||
${python.interpreter} test3/alltests.py
|
LANG="en_US.UTF-8" ${python.interpreter} ${if isPy3k then "test3/alltests.py" else "test/alltests.py"}
|
||||||
'' else ''
|
|
||||||
${python.interpreter} test/alltests.py
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Create symlinks lacking a ".py" suffix, many programs depend on these names
|
# Create symlinks lacking a ".py" suffix, many programs depend on these names
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
(cd $out/bin && for f in *.py; do
|
for f in $out/bin/*.py; do
|
||||||
ln -s $f $(echo $f | sed -e 's/\.py$//')
|
ln -s $(basename $f) $out/bin/$(basename $f .py)
|
||||||
done)
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in a new issue