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

Install package from Version Control System (git) where setup.py is in subdirectory #1915

Closed
mohelm opened this issue Jan 18, 2020 · 2 comments
Labels
kind/bug Something isn't working as expected

Comments

@mohelm
Copy link

mohelm commented Jan 18, 2020

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

Issue

I a m trying to execute a command like this:

 poetry add  "git+ssh://git@gitlab.XXX.io:XX/XX.git#egg=pkg&subdirectory=app"

That is, I am seek to install from a repo on Gitlab where the setup.py is in a subdirectory app. I got the above command from here on stackoverflow, and it works when I do poetry run pip install ....

However when doing poetry add as above, I am getting:

[CalledProcessError]
Command '['git', '--git-dir', '/var/folders/gd/1lpddhjd5fq2zh0ktw4q26z5xm6fsn/T/pypoetry-git-rsdslo4r2dqx/.git', '--work-tree', '/var/folders/gd/1lpddhjd5fq2zh0ktw4q26z5xm6fsn/T/pypoetry-git-rsdslo4r2dqx', 'checkout', 'egg=pkg&subdirectory=app']' returned non-zero exit status 1.

Is this an issue on my or on Poetry's side?

Many thanks.

@mohelm mohelm added the kind/bug Something isn't working as expected label Jan 18, 2020
@finswimmer
Copy link
Member

Hello @mohelm,

installing packages in a subfolder of git is currently not supported by poetry. There is already a feature request for it (#755) and I started to work on that (#1822).

I close this as a duplicate.

fin swimmer

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
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

2 participants