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
setuptools_scm breaks pip installing subdirs from git #176
Comments
|
@dstufft i'm not sure if setuptools_scm is at fault or if pip breaks us - any idea? |
|
We're probably only copying the sub directory and not the parent directory. |
|
@dstufft does pip provide any mechanism to get pkg-info/egg-info in place even in such a case |
|
for the record, we do already have fallback support for pip-egg-info that works for normal checkouts it doesn't work for sub-directory checkouts |
|
If I'm right above, probably not? Though it might be reasoanble to copy the parent directory too and just CD into the sub directory-- but we'd have to verify that is actually the case. |
|
The issue seems not only with git subdir URLs but also when you have a complete checkout and run (as a sidenote, it would be nice to explain somewhere why this package is "blessed"? how is it better than e.g. versioneer?) |
|
I have the same issue here. In my Running If the directory exists, Since a fallback is found, the pop the |
|
thanks for the investigation - im going to experiment with alternatives to root pop soon |
|
@RonnyPfannschmidt Any progress on a fix for this regression? |
|
It is still possible to workaround this issue without downgrading ...
use_scm_version={'relative_to': os.path.dirname(__file__)},
...Please let me know if this solution has any drawbacks. |
|
Any progress on this? |
|
modern pip no longer breaks this as far as i can tell |
|
Hi, I think I'm having a similar issue to this. Here's a repo where I've been playing around with the utility. https://github.com/xkortex/test_scm/tree/2252ab3b53b3cda31fdd82ebc90d3c113bd8d987 This is with pip 20.1.1. I have tried dozens of configurations, messing with I'll try to play around with different configurations when I have more time. I'm pretty sure I'm following the documentation, but it's not totally clear when pip517 is in play or not. |
|
Same here |
For example:
pip install 'git+https://github.com/swift-nav/libsbp#subdirectory=python'pip clones the entire repo, including the
.gitdir, but setuptools_scm breaksThe text was updated successfully, but these errors were encountered: