-
Notifications
You must be signed in to change notification settings - Fork 990
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] deploy() in conanfile.py #15729
Comments
Thanks for your question
No, the The syntax is intended to be used as |
This is the deploy() method from my
I'm also using
|
Thanks for the feedback. Some minor comments:
|
Many thanks, that you gave me some good improvements which I can add it in my code. This is the conan command:
I created my own profile which I added in my profileDevelopment
Now, I thing you understand where it comes from _build_type. Regarding the target part, why I'm using ../../models, it is because my folder structure it looks like that and if I run
├── ...
├── work
│ ├── conanrecipes
│ ├── conanfile.py
│ ├── conandata.yml
│ └── models
└── ...
I hope I made myself clear now and maybe you have an overall an idea what I'm doing. |
Yeah, overriding Thanks for the details, I have managed to reproduce. |
Regarding the build_type, I'm sure it works fine. I also added in So, you mean that deploy() method will work for a specific require when I just run command like Thank you! |
I am submitting a fix in #15737 for next release. I am going to leave the possibility of calling the local consumer recipe
It will work for both, there will most likely be users that want their local |
#15737 merged, it will be in next 2.2 |
What is your question?
Hi!
The question is how can I get dependencies from cache in my current project with deploy() method from conanfile.py?
When I try to run conan install command with
--deployer-package=*
argument, I get this error:line 272, in deploy
File "", line 108, in join
TypeError: expected str, bytes or os.PathLike object, not NoneType
ERROR: expected str, bytes or os.PathLike object, not NoneType
I tried to use the syntax from documentation:
self.package_folder
- what represents? Is it the root for conan dependencies?What I understood, self.package_folder will take binary artifacts from artifactory server, not from my dependencies.
But I would like to get dependencies from my cache.
Thank you!
The text was updated successfully, but these errors were encountered: