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
user install of setuptools: easy_install -d
option ignored
#285
Comments
Original comment by bubla (Bitbucket: bubla, GitHub: bubla): I think that the fix in pull request #109 should do the trick. |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally reported by: bubla (Bitbucket: bubla, GitHub: bubla)
I have encountered the following case with setuptools installed using
easy_install
with the--user
option (reason for the user installation: The system version was outdated).The new setuptools provide their
easy_install
command and I have tried to install an egg to a given directory like this:However, instead of complaining that the target directory is not in
PYTHONPATH
, it didn't even try to install it there and went directly to the user's Python directory, i.e.~/Library/Python/2.7/lib/python/site-packages
(that's on OSX).After investigation, we have discovered that the
initialize_options
function in easy_install.py:150 sets theself.user
property, although--user
hasn't been passed on command-line.Then, it most likely results in
self.install_dir
being silently overwritten on easy_install.py:276 (but we aren't sure since we are not familiar with the purelib and stuff).Anyway, the
--user
and--install-dir
arguments toeasy_install
are contradictory, so setting user internally especially if install-dir has been set by the user looks like bug.I propose not doing this if potentially conflicting arguments have been supplied. If this is too much, then this behavior should be documented and user should be clearly warned that his request is going to be ignored.
The text was updated successfully, but these errors were encountered: