Skip to content

Commit

Permalink
prompt error when egg-link not found
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlatwe committed Nov 26, 2021
1 parent 3e49fcc commit 0dbb0f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/rezup/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,13 @@ def create_production_scripts(self, tool, venv_session):

if tool.edit:
egg_link = site_packages / ("%s.egg-link" % tool.name)
if not egg_link.is_file():
_log.error("Tool %r installed in edit mode, but unable "
"to find egg-link for generating production "
"scripts from source. File not exists: %s" %
(tool.name, egg_link))
return

with open(str(egg_link), "r") as f:
package_location = f.readline().strip()
path = [str(package_location)]
Expand Down

0 comments on commit 0dbb0f9

Please sign in to comment.