Skip to content

--use-feature=in-tree-build not working  #10551

@ccampbell9

Description

@ccampbell9

Description

When trying to install a locally created package leveraging setuptools in a setup.py file, pip errors out with the following:

pip install .
Processing <path/to/directory>
  DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
   pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
ERROR: No .egg-info directory found in /tmp/pip-pip-egg-info-fdrfckqj

When the suggestion is followed, the same error occurs:

pip install --use-feature=in-tree-build .
Processing <path/to/file>
ERROR: No .egg-info directory found in /tmp/pip-pip-egg-info-i6ngpawd

Expected behavior

When the --use-feature=in-tree-build flag is used, my understanding is pip should be able to build the package in place and not have to first reference /tmp.

pip version

21.2.4

Python version

3.9

OS

Debain 11 and Ubuntu 20.04

How to Reproduce

  1. Create any local python package and associated setup.py that uses setuptools
  2. Attempt to install

Reproduced on 2 machines so far

Output

No response

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions