heroku-buildpack-python: pipenv links local package to wrong path

If we have a Pipenv and Pienv.lock file that define local package:

myapp  = {editable = true, path = "."}

When buildpack builds such project it will create “myapp.egg-link” with contents that links to build dir of that package, which is no longer valid at the moment when app runs.

After build myapp.egg-link will be:

/tmp/build/$randomhash$

the correct is

/app

I’am not sure how to fix such behavior in buildpack. One idea would be to replace relative path off path = "." with absolute path = "/app", but that creates more problems if you have multiple local packages.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 23 (3 by maintainers)

Most upvoted comments

I’ll prepare a minimal example that exhibits the bug.