Merge pull request #195055 from Mic92/buildPythonPackage
buildPythonPackage: fix regression if no setuptools is used
This commit is contained in:
@@ -3,7 +3,21 @@ echo "Sourcing python-catch-conflicts-hook.sh"
|
||||
|
||||
pythonOutputDistPhase() {
|
||||
echo "Executing pythonOutputDistPhase"
|
||||
mv "dist" "$dist"
|
||||
if [[ -d dist ]]; then
|
||||
mv "dist" "$dist"
|
||||
else
|
||||
cat >&2 <<EOF
|
||||
The build contains no ./dist directory.
|
||||
If this project is not setuptools-based, pass
|
||||
|
||||
format = "other";
|
||||
|
||||
to buildPythonApplication/buildPythonPackage or another appropriate value as described here:
|
||||
|
||||
https://nixos.org/manual/nixpkgs/stable/#buildpythonpackage-function
|
||||
EOF
|
||||
false
|
||||
fi
|
||||
echo "Finished executing pythonOutputDistPhase"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user