<#2160 Bad `installed_wheels` dir when a wheel's `...
# github-notifications
c
#2160 Bad `installed_wheels` dir when a wheel's `top_level.txt` dirname collides with `sources` Issue created by thejcannon Steps to reproduce: Here's a
pex
(renamed to
.zip
for GitHub's sake) local.zip. It has a
top_level.txt
of
top_level
. Rename to
local.whl
Then, next to that file:
Copy code
$ mkdir -p sources/top_level/
$ echo 'print("hello")' > sources/top_level/mymain.py
$ pex --output-file binary.pex --venv prepend --requirements-pex local.pex --entry-point top_level.mymain $'--sources-directory=sources' --layout packed
$ ./binary/__main__.py
hello
$ ls ~/.pex/installed_wheels/a571cccbc564d1e7da4efe2416aca4bb049256ab4d0b30553f9d4de8207fb283/top_level-0.0.0-cp38-cp38-linux_x86_64.whl/top_level/
__init__.py  mymain.py  __pycache__
mymain.py
is not part of the wheel, and shouldn't be in there. pantsbuild/pex