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

Running poetry install should not install the current project into site-packages #1333

Closed
2 tasks done
jackemuk opened this issue Aug 27, 2019 · 4 comments
Closed
2 tasks done

Comments

@jackemuk
Copy link

jackemuk commented Aug 27, 2019

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • [] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

From time to time I clean out the installed packages by running "pip freeze | xargs pip uninstall -y" to make sure I have the necessary packages added to pyproject.toml file via poetry. When I run poetry install, it will install all the dependencies but it also creates a .egg-info and installs my project into the site-packages. I then have to run pip uninstall project-name to uninstall my current project.

This doesn't seem correct since i'm not creating a build. If I run poetry update, only the dependencies are installed, but all package versions are also updated.

Running poetry install should only install the project dependencies, not install the current project into the site packages.

I have run poetry self:update and it will only update to version 0.12.17 and will not update to 1.0.0b1

@brycedrennan
Copy link
Contributor

This is very similar to #1301 so I'm closing this as duplicate. I encourage you to put a 👍 on that issue and add any thoughts you have there.

@jackemuk
Copy link
Author

jackemuk commented Aug 30, 2019

While it's slightly related, it's a different issue.
The install command states that it reads the pyproject.py dependencies and installs them.

The project is not a dependency to itself. If the current package is to be installed then that's a local deployment, not dependency install.

@jackemuk
Copy link
Author

jackemuk commented Sep 5, 2019

@brycedrennan Please reopen this issue for discussion.

The default behavior should not be equivalent to "pip install -e ."

I discovered by reviewing the code that adding the option "--no-root", the current package is not installed as a dependency. "poetry install --no-root"

Unfortunately, this is not able to be configured as the default, and allowing the addition of the "-e" option to mimic the behavior of "pip install -e ."

Copy link

github-actions bot commented Mar 3, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants