Skip to content

Commit d20ddf8

Browse files
committed
Avoid editable installs for pyproject.toml-style projects
1 parent 3ebeb57 commit d20ddf8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

bin/compile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,13 @@ mtime "pip.uninstall.time" "${start}"
269269
# This allows for people to ship a setup.py application to Heroku
270270
# (which is rare, but I vouch that it should work!)
271271

272-
if [ ! -f requirements.txt ] && [ ! -f Pipfile ]; then
273-
echo "-e ." > requirements.txt
272+
if [ ! -f requirements.txt ] && [ ! -f Pipfile ] ; then
273+
if [ -f pyproject.toml ] ; then
274+
# Editable installs are not supported for pyproject.toml-style projects.
275+
echo "." > requirements.txt
276+
else
277+
echo "-e ." > requirements.txt
278+
fi
274279
fi
275280

276281
# Fix egg-links.

0 commit comments

Comments
 (0)