sangoma / switchy

async FreeSWITCH cluster control
https://switchy.readthedocs.io/en/latest/
Mozilla Public License 2.0
69 stars 18 forks source link

Pip download command not working #39

Closed tsemczyszyn closed 8 years ago

tsemczyszyn commented 8 years ago

Receiving the following output after running the command as shown in the readme

[root@switchy ~]# pip download git+git://github.com/sangoma/switchy.git -b switchy/
Collecting git+git://github.com/sangoma/switchy.git
  Cloning git://github.com/sangoma/switchy.git to /tmp/pip-i83bezxs-build
  Saved ./switchy-0.1a0.zip
Collecting click (from switchy==0.1a0)
  File was already downloaded /root/click-6.6.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3.5/tokenize.py", line 454, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: 'switchy/click/setup.py'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in switchy/click/
goodboy commented 8 years ago

I swear this worked for me at some point. The problem seems to be just after click is untarred and python setup.py egg_info is run:

(venv)  >>> python2 switchy/click/setup.py egg_info
Traceback (most recent call last):
  File "switchy/click/setup.py", line 9, in <module>
    with open('click/__init__.py', 'rb') as f:
IOError: [Errno 2] No such file or directory: 'click/__init__.py'

So it would seem click expects setup.py to be run from the directory it's in. I'm not sure if this is a recent change to click or something in the build system tools. I guess the whole pip download thing is kind of redundant since it has to use git underneath anyway. I think I'll just add development install instructions which just includes a git clone as the first command instead.