-
Notifications
You must be signed in to change notification settings - Fork 993
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
[question] Can VirtualRunEnv/VirtualBuildEnv scripts generation be suppressed for deployers? #16117
Comments
Hi @db4 Yes, I think that if you instantiate |
Hi @memsharded from conan import ConanFile
from conan.tools.files import copy
import os
class PkgConan(ConanFile):
def requirements(self):
for req in self.conan_data["sources"][self.version]["requirements"]:
self.requires(req)
def deploy(self):
for d in self.dependencies.host.values():
for f in ["bin", "data", "config"]:
if d.package_folder:
copy(self, "*", src=os.path.join(d.package_folder, f),
dst=os.path.join(self.deploy_folder, f)) I create a package and then deploy files using |
I misunderstood, I thought that you were using an external It is not possible to deactivate that from the recipe, you can:
We might be considering other built-ins way to deactivate the environment generation, but not a high priority. |
Ok. Then leave this issue open? |
yes, can be left open, thanks |
This PR #16863 is adding a conf that disables the generation of those scripts |
Thanks, |
What is your question?
I'm exporting files from the Conan cache using
conan install --requires=pkg/x.x.x --deployer-package pkg/*
anddeploy()
method inpkg
recipe. Everything works as expected exceptconan install
also createsconanbuild*
,conanrun*
, anddeactivate*
files in the current directory. Can I suppress their generation?Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: