jathanism/netscaler-api — pull request #1 by dlindquist (2012-06-29 03:13:28+00:00)
Title: Fix for installing netscaler-api from a pip requirements file

Hi Jathan,

I ran into an issue installing netscaler-api via pip when using a requirements file. For example:

(test) $ cat requirements.txt
suds==0.4
netscaler-api==0.2.0
(test) $ pip install -r requirements.txt
Downloading/unpacking suds==0.4 (from -r requirements.txt (line 1))
Downloading suds-0.4.tar.gz (104Kb): 104Kb downloaded
Running setup.py egg_info for package suds
Downloading/unpacking netscaler-api==0.2.0 (from -r requirements.txt (line 2))
Downloading netscaler-api-0.2.tar.gz
Running setup.py egg_info for package netscaler-api
Traceback (most recent call last):
File "", line 14, in
File "/tmp/test/build/netscaler-api/setup.py", line 11, in
from netscaler import __version__
File "netscaler.py", line 23, in
from suds.client import Client, WebFault
ImportError: No module named suds.client
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 14, in

File "/tmp/test/build/netscaler-api/setup.py", line 11, in

from netscaler import __version__

File "netscaler.py", line 23, in

from suds.client import Client, WebFault

ImportError: No module named suds.client

The issue seems to be that pip does not fully install the packages until all packages have been successfully installed. Thus, suds cannot be imported during the setup.py process. This small commit changes the project so that suds is not imported during the running of setup.py.

Could you pull it?

Thanks!

David