PYTHONPATH can break editable packages

Open
#1,005 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
build-system

Research direction

Start by reproducing the reported behavior with a path in PYTHONPATH during an editable install via setup.py develop, using the linked pip issue for context. Inspect how the path is handled in easy-install.pth; done means the setuptools-specific cause is established and documented clearly enough for a focused fix or follow-up report.

Written by the indexing model from the issue text.

Description

Needs Triage

I haven't traced the issue down to the setuptools details yet but here is the symptom :
https://github.com/pypa/pip/issues/4261

TL;DR if a path is present in PYTHONPATH when installing (--editable -> setup.py develop ) a package , that path is not added to easy-install.pth.

We probably need a more detailed (and setuptools focused) report.

Dominant language
Python
Stars
2.9k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pypa/setuptools

All issues in pypa/setuptools

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.