Feature: Generator for python environment - #5511
Conversation
lasote
left a comment
There was a problem hiding this comment.
We would need some tests. We can help with that, just tell us.
|
|
||
| def _python_paths(deps_env_info): | ||
| result = set() | ||
| for dep in deps_env_info.deps: |
There was a problem hiding this comment.
Not sure if we should access directly to the aggregated value of deps_env_info.get("PYTHONPATH"). Have you tried? (note: I don't remember if that works)
There was a problem hiding this comment.
self.deps_env_info.vars.get("PYTHONPATH", []) works.
PYTHONPATH from conanfile.env is also added.
41e4922 to
aff68b8
Compare
Added a test now. The test currently only supports Linux and Windows. Not sure what the file-extension and delimiter should be on other systems. I guess that most should be handled like Linux. |
|
The tests use file-extension '.sh' and delimiter ':' for other platform systems. |
|
Anny comments @lasote ? |
|
@birgerbr I opened a PR in your fork with some modifications. Sorry for the delay :( |
Aight ✌️ I'll check it out. |
…nto feature/python_virtualenv
Feature/python virtualenv
Co-Authored-By: Luis Martinez de Bartolome Izquierdo <lasote@gmail.com>
Changelog: Feature: Virtual environment generator for gathering only the PYTHONPATH.
Docs: conan-io/docs#1369
This pull-request closes #5157
developbranch, documenting this one.Note: By default this PR will skip the slower tests and will use a limited set of python versions. Check here how to increase the testing level by writing some tags in the current PR body text.