linkedin / shiv

shiv is a command line utility for building fully self contained Python zipapps as outlined in PEP 441, but with all their dependencies included.
BSD 2-Clause "Simplified" License
1.73k stars 94 forks source link

Add symlink traversal to support PDM cached envs #237

Closed f3flight closed 1 year ago

f3flight commented 1 year ago

Fixes #236

Shiv currently does not collect symlinked directories and files within. This PR makes it do just that, which helps support environments created with PDM with cache=True.

In future this can be solved more elegantly with a builtin flag which will be introduced in Python 3.13 - https://github.com/python/cpython/issues/77609