Skip to content

Please Add Option To Skip Venv Creation #83

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

Open
muellert opened this issue May 2, 2024 · 2 comments
Open

Please Add Option To Skip Venv Creation #83

muellert opened this issue May 2, 2024 · 2 comments

Comments

@muellert
Copy link

muellert commented May 2, 2024

  • Plone CLI version: 2.5
  • Python version: 3.11.2
  • Operating System: Debian Bookworm amd64

Description

I want to get a Plone6 development environment set up, using my 'plone6' virtualenv which I manage with 'virtualenvwrapper'.

What I Did

(plone6)$ plonecli build

This created a subdirectory 'venv' in the project directory and pulled all sorts of stuff into that, as opposed to just using the already existing and activated virtualenv. I found no way to prevent this from happening. The weirdest thing is, this happened on one machine. On another machine of mine, which runs the same operating system, and where I ran this initially, it did use the virtualenv, but after rsync'ing the resulting project and virtualenv to this machine, it still started with creating that 'venv' directory and put everything that was already present, in there as well. With the scripts being configured in a way that the virtualenv isn't even relocatable, I see no benefit at all, besides not wanting this stuff in my project directory.

Please add a mechanism to use an existing virtualenv and skipping the 'venv' creation step.

@MrTango
Copy link
Contributor

MrTango commented Apr 9, 2025

from the readme:

NOTE: When using tools like pyenv or pipenv, you should disable the local virtualenv creation by setting package.venv.disabled = y in your .mrbob config file. You can also use plonecli config to generate the config for you.

does this help you?

@MrTango
Copy link
Contributor

MrTango commented Apr 9, 2025

this is a user global setting in your home folder

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

2 participants