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

Feature: Generator for python environment #5511

Merged
merged 14 commits into from Sep 14, 2019

Conversation

@birgerbr
Copy link
Contributor

commented Jul 18, 2019

Changelog: Feature: Virtual environment generator for gathering only the PYTHONPATH.
Docs: conan-io/docs#1369

This pull-request closes #5157

  • Refer to the issue that supports this Pull Request.
  • If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Request.
  • I've read the Contributing guide.
  • I've followed the PEP8 style guides for Python code.
  • I've opened another PR in the Conan docs repo to the develop branch, 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.

@lasote lasote added this to the 1.18 milestone Jul 26, 2019
Copy link
Contributor

left a 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:

This comment has been minimized.

Copy link
@lasote

lasote Jul 26, 2019

Contributor

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)

This comment has been minimized.

Copy link
@birgerbr

birgerbr Aug 1, 2019

Author Contributor

self.deps_env_info.vars.get("PYTHONPATH", []) works.

@lasote lasote modified the milestones: 1.18, 1.19 Jul 29, 2019
@birgerbr birgerbr force-pushed the birgerbr:virtualenv_python branch from 41e4922 to aff68b8 Aug 1, 2019
@birgerbr

This comment has been minimized.

Copy link
Contributor Author

commented Aug 1, 2019

We would need some tests. We can help with that, just tell us.

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.

@birgerbr

This comment has been minimized.

Copy link
Contributor Author

commented Aug 15, 2019

The tests use file-extension '.sh' and delimiter ':' for other platform systems.

@birgerbr

This comment has been minimized.

Copy link
Contributor Author

commented Aug 15, 2019

Anny comments @lasote ?

@lasote

This comment has been minimized.

Copy link
Contributor

commented Sep 13, 2019

@birgerbr I opened a PR in your fork with some modifications. Sorry for the delay :(

@birgerbr

This comment has been minimized.

Copy link
Contributor Author

commented Sep 13, 2019

@birgerbr I opened a PR in your fork with some modifications. Sorry for the delay :(

Aight ✌️ I'll check it out.

@lasote lasote self-assigned this Sep 13, 2019
lasote and others added 3 commits Sep 13, 2019
Feature/python virtualenv
@lasote
lasote approved these changes Sep 13, 2019
Co-Authored-By: Luis Martinez de Bartolome Izquierdo <lasote@gmail.com>
@lasote lasote merged commit db8a8c7 into conan-io:develop Sep 14, 2019
2 checks passed
2 checks passed
continuous-integration/jenkins/pr-head This commit looks good
Details
license/cla Contributor License Agreement is signed.
Details
Milestone 1.19 Release automation moved this from Triaging to Done Sep 14, 2019
@lasote lasote removed their assignment Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
2 participants
You can’t perform that action at this time.