← All tasks
pythonpython-poetry/poetry #732Not a task: not reproduced

Which pip version does poetry use?

envgap__python-poetry__poetry-732

Original GitHub issue ↗Opened 2018-12-11

01 / FAILURE SIGNATURE

As reported upstream

ERROR: Project file:///workspace has a 'pyproject.toml' and its build backend is missing the 'build_editable' hook. Since it does not have a 'setup.py' nor a 'setup.cfg', it cannot be installed in editable mode. Consider using a build backend that supports PEP 660.
Not a benchmark task.
  • No curated issue-specific recipe or verified environment fix is available.

02 / ENVIRONMENT RECIPE

Base commit
Not freshly verified
Manifest
requirements.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

python-poetry/poetry #732 · read the original issue
<!-- Checked checkbox should look like this: [x] -->

- [x] I have searched the [issues](https://github.com/sdispater/poetry/issues) of this repo and believe that this is not a duplicate.

- [x] I have searched the [documentation](https://poetry.eustace.io/docs/) and believe that my question is not covered.



## Question

I was wondering how poetry chooses which pip version it uses when installing new packages? And how can we make it choose a different one?



I am asking this question because of the following problem I encountered:



While trying to install "cryptography" in a Docker container with poetry I got the following error message:



```

Command ['/root/.cache/pypoetry/virtualenvs/hybrid-py3.7/bin/pip', 'install'  

, '--no-deps', 'cryptography==2.4.2'] errored with the following output:      

Collecting cryptography==2.4.2                                                

  Downloading https://files.pythonhosted.org/packages/f3/39/d3904df7c56f8654  

691c4ae1bdb270c1c9220d6da79bd3b1fbad91afd0e1/cryptography-2.4.2.tar.gz (468k  

B)                                                                            

  Could not find a version that satisfies the requirement cffi!=1.11.3,>=1.7  

 (from versions: )                                                            

No matching distribution found for cffi!=1.11.3,>=1.7                         

You are using pip version 10.0.1, however version 18.1 is available.    

```



I found the error a little bit weird in the first place, because it does not occur when I run `poetry install` locally, but after a little bit of googling it seemed that the cffi problem was related to the pip version and should be fixable, by upgrading pip => which leads to my question: My dockerfile is based on python:3.7-alpine and has pip 18.1 installed, so why does poetry still try to use pip version 10.0.1?



Thanks a lot to anyone taking the time to read through this :)



Edit: To fix my issue, I just had to do `poetry run pip install --upgrade pip` before `poetry install`, but I guess my question where poetry gets the idea to use 10.0.1 from still holds? :)
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]

Issue-specific recipe and runtime smoke command require review against the complete issue and repository.

Legacy reproduction is generic install-only; match the actual issue failure before admission.