-
Notifications
You must be signed in to change notification settings - Fork 35
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
Errors when building/installing ssh==1.7.14 #2
Comments
Thanks for the feedback! The stack trace kind of looks like a bug in distutils unless I'm misunderstanding things completely... Basically |
I'm running Mac OS X Lion 10.7.5 and the command |
I can reproduce it on my girlfriend's MacBook running Mac OS X 10.8, but the system wide However fortunately I did take a look at the if sys.platform == 'darwin':
import setup_helper
setup_helper.install_custom_make_tarball() Inside _custom_formats = {
'gztar': (make_tarball, [('compress', 'gzip')], "gzip'ed tar-file"),
'bztar': (make_tarball, [('compress', 'bzip2')], "bzip2'ed tar-file"),
'ztar': (make_tarball, [('compress', 'compress')], "compressed tar file"),
'tar': (make_tarball, [('compress', None)], "uncompressed tar file"),
}
# Hack in and insert ourselves into the distutils code base
def install_custom_make_tarball():
distutils.archive_util.ARCHIVE_FORMATS.update(_custom_formats) As the comment points out this is a monkey patch of distutils, and I'm convinced this is the cause of the problem. I found the ssh project on GitHub to report the bug, however I noticed that the readme says that |
Wow, that's some awesome support, Peter. Cool. I believe ssh is s secondary dependency—I don't use it directly. I'll find out which project uses it and see if they can upgrade to paramiko anyway. Thanks for the great reply here. |
I fell into the same trap and could get around it by pinning to |
So latest paramiko have this annoying hack https://github.com/paramiko/paramiko/blob/master/setup.py#L52 Pip installs it without complains, so maybe pip-accel somehow should do it? This issue closed, but it can't see workaround or smth. |
@l0kix2: Just got an email notification from your message here. I don't have time to look into this right now but I will definitely forget if I don't follow up on this in some way, so I'll reopen this issue as a reminder to investigate. If things stay quiet for too long then feel free to bump this issue to remind me ;-) |
Thanks, i really don't know how to handle it for a long time. When i'm trying to install fabric on mac os via pip-accel it installs paramiko, which fails with |
Bump, happening over here as well with paramiko-1.12.4 on OS X 10.10.5 with Python 2.7.10 as the base. |
As I explained before in this issue the bug here is not in pip-accel but in the SSH and Paramiko packages: Various versions of both packages (including apparently the master branch of Paramiko :-s) include a Mac OS X specific customization of the However I understand that just pointing out a bug elsewhere doesn't really help you at all :-). Given that I understand what the problem is here and really it shouldn't be that hard to fix it I decided to create a pull request on the Paramiko project to get this fixed, you can find the pull request here: paramiko/paramiko#582. In the short term, if the version of Paramiko on the master branch satisfies your requirements you can install it as follows: pip-accel install https://github.com/xolox/paramiko/archive/fix-bdist-dumb-mac-os-x.zip Let's hope my pull request is merged quickly :-). |
Thanks a lot for the update;. |
My pull request was just merged which means the Paramiko master branch is now installable via pip-accel on Mac OS X. Until a proper release is made you should be able to use e.g. this syntax:
I believe this is the best I can do so I'm going to go ahead and close this issue now. Thanks for the feedback everyone! |
Installing ssh==1.7.14 leads to this error, when installed with
pip-accel
:Installing with
pip
works just fine. Any clues?The text was updated successfully, but these errors were encountered: