jacebrowning / jacebrowning/template-python

Editable builds possible?

Open
#201 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
668
Forks
100
PR merge metrics
No merged PRs in 30d

Description

Hi,

Is it possible to use `pip3 install -e .` with these projects? When I try I get an error:

```
Defaulting to user installation because normal site-packages is not writeable
ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /home/russ/repos/xxxxxx
(A "pyproject.toml" file was found, but editable mode currently requires a setuptools-based build.)
```

What's the best way to go about getting this to work?

Edit: should have researched a bit more: https://github.com/python-poetry/poetry/discussions/1135#discussioncomment-145763

and more importantly: https://www.python.org/dev/peps/pep-0660/

Cheers.

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.

Research direction

Start by reviewing the project's pyproject.toml and reproducing the reported pip3 install -e . failure. Read PEP 660 and the linked Poetry discussion to understand the editable-install requirements. Done means the template's generated projects support editable installation, with the expected command verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.