add setuptools/easy_setup support
This commit is contained in:
Robey Pointer 2005-12-16 09:59:05 -08:00
parent 995343439a
commit a14384370c
2 changed files with 25 additions and 3 deletions

9
README
View File

@ -38,6 +38,10 @@ you can also build it yourself using the free MinGW tools and this command
line (thanks to Roger Binns for the info): line (thanks to Roger Binns for the info):
python setup.py build --compiler=mingw32 bdist_wininst python setup.py build --compiler=mingw32 bdist_wininst
If you have setuptools, you can build and install paramiko and all its
dependencies with this command (as root):
easy_install ./
*** PORTABILITY *** PORTABILITY
@ -246,3 +250,8 @@ v1.0 JIGGLYPUFF
* make a function to parse .ssh/config files: * make a function to parse .ssh/config files:
User, Hostname, Port, ProxyCommand, IdentityFile, HostKeyAlias User, Hostname, Port, ProxyCommand, IdentityFile, HostKeyAlias
ProxyCommand: %h = host, %p = port, "none" = disable ProxyCommand: %h = host, %p = port, "none" = disable
* introduce higher-level abstraction (SSHConnection ?) that handles host key
checking, etc, using openssh defaults or optional configuration (2ndary host
key files, etc)
local and remote port forwarding
* SFTPClient.set_size

View File

@ -1,5 +1,3 @@
from distutils.core import setup
# Copyright (C) 2003-2005 Robey Pointer <robey@lag.net> # Copyright (C) 2003-2005 Robey Pointer <robey@lag.net>
# #
# This file is part of paramiko. # This file is part of paramiko.
@ -26,9 +24,23 @@ connections between python scripts. All major ciphers and hash methods
are supported. SFTP client and server mode are both supported too. are supported. SFTP client and server mode are both supported too.
Required packages: Required packages:
pyCrypt pyCrypto
''' '''
# if someday we want to *require* setuptools, uncomment this:
# (it will cause setuptools to be automatically downloaded)
#import ez_setup
#ez_setup.use_setuptools()
try:
from setuptools import setup
kw = {
'install_requires': 'pycrypto >= 1.9',
}
except ImportError:
from distutils.core import setup
kw = {}
setup(name = "paramiko", setup(name = "paramiko",
version = "1.5.2", version = "1.5.2",
description = "SSH2 protocol library", description = "SSH2 protocol library",
@ -46,4 +58,5 @@ setup(name = "paramiko",
'Topic :: Internet', 'Topic :: Internet',
'Topic :: Security :: Cryptography' ], 'Topic :: Security :: Cryptography' ],
long_description = longdesc, long_description = longdesc,
**kw
) )