question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip install -e . equivalent?

See original GitHub issue

We cannot run pip install -e . because there is no setup.py. What would be the way to achieve this using poetry?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:124
  • Comments:207 (68 by maintainers)

github_iconTop GitHub Comments

264reactions
WouterVHcommented, Apr 18, 2018

I don't know how you develop, but I never need pip install -e .. I either upload my packages to PyPI or a private index, or I install from a git repository

Ugh, that is not developing, that is installing a finished package.

These are roughly equivalent, in your src dir:

pip install -e . python setup.py develop

It’s called “installing a package in development mode”. They are the starting point of beginning development. If you are not familiar with that, then I honestly do not understand how you do development.

I know two ways of doing development without it:

export PYTHONPATH=<directory-to-your-package-module> or in your code: import sys sys.path.append(…)

Are you recommending this? (I hope not)

211reactions
merwokcommented, Apr 18, 2018

Another use case is when you’re trying to fix something in a library used by your project. From your project’s virtualenv, you run pip install -e path/to/library so that every change you make in the library repo is directly picked up in your project where you are testing the results.

Read more comments on GitHub >

github_iconTop Results From Across the Web

poetry analog to `pip install -e .` [closed] - Stack Overflow
I don't think there is really an equivalent, since Poetry installs everything in a virtual environment, and then uses poetry run to execute ......
Read more >
pip install - pip documentation v22.3.1
The install command has a --report option that will generate a JSON report of what pip has installed. In combination with the --dry-run...
Read more >
Poetry has officially fixed / permanently included pip install -e
So now pip install -e will do the right thing and produce an editable install even if the package itself uses Poetry.
Read more >
The difference between ``python setup.py build_ext
So, it seems that pip install -e DIR and python setup.py develop are equivalent in the final results for setting up the develop...
Read more >
PIP Install Environment - ActiveState
Pip is the standard package manager for Python. It enables the installation and management of third party packages that provide features and functionality ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found