-
-
Notifications
You must be signed in to change notification settings - Fork 614
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
Freaks out when compiling with a -e include that uses setuptools_scm #369
Comments
Not sure how to tackle this. If you have a suggestion, please submit a PR. |
The problem is that pip exports the source into a separate directory without the requirements.in:
Output from diff --git i/pip/vcs/__init__.py w/pip/vcs/__init__.py
index e0da09d..45876e1 100644
--- i/pip/vcs/__init__.py
+++ w/pip/vcs/__init__.py
@@ -315,6 +315,7 @@ def run_command(self, cmd, show_stdout=True, cwd=None,
command name, and checks that the VCS is available
"""
cmd = [self.name] + cmd
+ print(cmd)
try:
return call_subprocess(cmd, show_stdout, cwd,
on_returncode, command_level, The call from pip-tools to pip is
|
Using a `download_dir` will make `pip` export the cloned repo via `reqset._prepare_file` and `git-checkout-index`, which then makes `python setup.py egg_info` fail, when [setuptools_scm](https://github.com/pypa/setuptools_scm) is used. Fixes jazzband#369.
I have an idea – what if we don't use Why are we doing the |
Perhaps this is a bug in Just to aid in debugging here's a rich stack trace of how we get to the problem (starting at the last If we go ahead and stop the execution before the last frame gets called and copy the and here's the full traceback (for me):
|
Thanks @blueyed. I saw the tag |
@dfee |
@blueyed it seems that PR is scheduled for the next patch release, no? |
Ugh. It looks like https://github.com/jazzband/pip-tools/milestones/1.9.1 was deleted. Any way we can get this in https://github.com/jazzband/pip-tools/milestone/3 or https://github.com/jazzband/pip-tools/milestone/2? |
@dfee |
Using a `download_dir` will make `pip` export the cloned repo via `reqset._prepare_file` and `git-checkout-index`, which then makes `python setup.py egg_info` fail, when [setuptools_scm](https://github.com/pypa/setuptools_scm) is used. Fixes jazzband/pip-tools#369.
Add a
-e
git module to requirements.in that uses setuptools_scm to set it's version number. Then try apip-compile
and it blows up with a bad exit code.The text was updated successfully, but these errors were encountered: