-
Notifications
You must be signed in to change notification settings - Fork 3.1k
--no-clean and --build are broken #2060
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
Comments
it's not broke in linux (using v1.5.6):
can you provide full console output to a gist or a pastebin somewhere that confirms what you're saying. |
oh, ok, if you're installing directly from a local archive, then you're problem may be #804 |
@qwcode Looks like you figured out what I was reporting, and perhaps it's fixed. |
@qwcode Thanks Marcus! |
Pip version 1.5.6
Python 3.4
Windows 7-64
pip install help advertises options:
--no-clean to prevent pip from deleting the build directory and contents, and
-b (--build) to specify build directory
and the help for -b says "The default in a virtualenv is "[venv path]/build". The default for global installs is "[OS temp dir]/pip_build_[username]".
On Windows, and from a virtual env, when I run:
pip install -b [some existing path] --no-clean [somepackage].whl
... pip actually uses C:/Users/[me]/AppData/Local/Temp/pip-[random]-build/[packagename] as the build directory, and deletes it when done.
So:
--no-clean is broken
-b (--build) is broken
--build's help text about default build path seems to be incorrect.
From my not-too-thorough inspection, the problem appears to be that the code that deterimines build path and clean behavior is in req.py, and ignores the no_clean and build_dir settings. Code in install.py that does pay attention to no_clean and build_dir is pre-empted.
I'm assuming that some refactoring of the code broke these features.
I realize that build_dir and no_clean are deprecated (and pip shows a message to that effect), but if they are broken then they should not be reported as deprecated.
Further, issue #906 discusses this deprecation, in which a number of users request that no_clean NOT be removed. I add my vote to that, as it's useful for troubleshooting build steps that went wrong. The current issue that I'm raising is a case in point!
The text was updated successfully, but these errors were encountered: