Skip to content

Fix pip not installing dependencies for bfg#750

Open
Sirozha1337 wants to merge 1 commit into
yandex:developfrom
Sirozha1337:fix_bfg_pip_dependencies
Open

Fix pip not installing dependencies for bfg#750
Sirozha1337 wants to merge 1 commit into
yandex:developfrom
Sirozha1337:fix_bfg_pip_dependencies

Conversation

@Sirozha1337

Copy link
Copy Markdown
Contributor

In the docs for Bfg, it says:

pip: Install python modules with pip install --user before the test. If you need multiple modules use multiline options

So, the yaml config like this should work:

bfg:
  pip: >
      dep1

      dep2

But when you specify dependencies in .yaml file, pip is throwing this exception:

AttributeError: 'thread._local' object has no attribute 'indentation'

Upgrading pip doesn't help as pip.main is not available in the recent versions. In the pip docs, they encourage you to use subprocess, so I've changed pip.main to subprocess.check_call and now it works.

When you specify dependencies in .yaml file, pip is throwing this exception: AttributeError: 'thread._local' object has no attribute 'indentation'
Also pip.main is not available on the recent versions of pip
@fomars

fomars commented Jun 5, 2019

Copy link
Copy Markdown
Contributor

@f2nd подтверди плиз

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

Successfully merging this pull request may close these issues.

2 participants