-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shiv does not fully package namespaced packages #191
Comments
Also this other issue looks like it is probably the same problem: #187 |
Hi @stephenhelms, I can't reproduce this issue:
The pip issue that you linked is talking about running multiple invocations of Hope that helps! |
Hi, I've run into a corner case when trying to package an application that uses tensorflow with shiv. You can reproduce the issue by creating a python 3.6 virtual environment with
tensorflow-cpu==2.6.0
, then running:shiv -c tensorboard -o brokenshiv tensorboard
Tensorflow uses a few namespaced packages from google, which end up in a few locations:
When shiv runs its packaging, it executes
pip install --target
, which triggers this linked issue:pypa/pip#10110
During the installation, there is a warning:
WARNING: Target directory /tmp/tmpg5wic5v5/google already exists. Specify --upgrade to force replacement.
In the unzipped shiv package, only the auth and oauth directories make it into site-packages under google; the protobuf package is missing.
In the pip issue, the maintainers suggest the correct behavior is to use
--prefix
during installation. Do you have a tip for how to solve this? Thanks!The text was updated successfully, but these errors were encountered: