Skip to content

Commit 876cccd

Browse files
committed
Avoid editable installs for pyproject.toml-style projects
1 parent 631a406 commit 876cccd

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
@@ -266,8 +266,13 @@ mtime "pip.uninstall.time" "${start}"
266266
# This allows for people to ship a setup.py application to Heroku
267267
# (which is rare, but I vouch that it should work!)
268268

269-
if [ ! -f requirements.txt ] && [ ! -f Pipfile ]; then
270-
echo "-e ." > requirements.txt
269+
if [ ! -f requirements.txt ] && [ ! -f Pipfile ] ; then
270+
if [ -f pyproject.toml ] ; then
271+
# Editable installs are not supported for pyproject.toml-style projects.
272+
echo "." > requirements.txt
273+
else
274+
echo "-e ." > requirements.txt
275+
fi
271276
fi
272277

273278
# Fix egg-links.

0 commit comments

Comments
 (0)