Skip to content
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

setuptools requirement broken in venv #15

Open
bbonenfant opened this issue Mar 25, 2024 · 0 comments
Open

setuptools requirement broken in venv #15

bbonenfant opened this issue Mar 25, 2024 · 0 comments

Comments

@bbonenfant
Copy link

When py_venv attempts to install a setuptools dependency into the virtual environment, that setuptools package is broken. I believe this is due to the fact that the venv stdlib module will automatically install a version of setuptools into the fresh virtual environment. Then when the py_venv rule begins creating symlinks to the setuptools package files, it only symlinks to files that do not already exist, resulting in a mangled combination of the pre-installed setuptools package and the desired setuptools package.

I am currently able to work around this using the following extra_pip_commands:

py_venv(
    ...
    extra_pip_commands = [
        "install --ignore-installed setuptools"
    ]
)

which fixes the corrupted setuptools package but is not ideal since I do not believe it's using the "locked" version of setuptools which I am expecting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant