Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow pip install -e . to work #758

Closed
wants to merge 1 commit into from
Closed

Allow pip install -e . to work #758

wants to merge 1 commit into from

Conversation

Gerardwx
Copy link
Contributor

@Gerardwx Gerardwx commented Jun 1, 2021

When I tried pip install -e . I received the error message
ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /git/twine
(A "pyproject.toml" file was found, but editable mode currently requires a setup.py based build.)

A stackoverflow post suggested creating this file, which seems to work.

@bhrutledge
Copy link
Contributor

Thanks for flagging this. We removed setup.py recently, in #757, because newer versions of pip don't require it.

What's the output of this command?

python3 -m pip --version

Can you try upgrading?

python3 -m pip install -U pip

This is a good thing to do regularly, and whenever you create a new virtual environment.

That said, I'm guessing other folks will encounter this issue, so it might be worth adding the recommendation to upgrade pip in our contributing guide.

@Gerardwx
Copy link
Contributor Author

Gerardwx commented Jun 1, 2021

Oh, the default Ubuntu18.04 pip is ancient. The pip upgrade works.

@Gerardwx Gerardwx closed this Jun 1, 2021
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.

None yet

2 participants