02strich / python-pandora

Python library for talking to pandora.com
24 stars 15 forks source link

Pip install (using virtualenv) places crypt_keys in wrong directory #1

Closed folz closed 12 years ago

folz commented 12 years ago

When installing python-pandora from pip, the cryptkey*.h files are incorrectly placed in the current directory. This leads to the error

IOError: [Errno 2] No such file or directory: 'venv/lib/python2.7/site-packages/pandora/crypt_key_output.h'

because crypt_key_output.h is actually located in 'venv/pandora/crypt_key_output.h'

Steps to reproduce:

$ mkdir some_folder && cd some_folder

$ virtualenv venv --distribute && source venv/bin/activate

$ pip install python-pandora

[...] warning: no files found matching 'pandora\cryptkey*.h' [...]

Which results in

$ cat venv/lib/python2.7/site-packages/python_pandora-0.6_33/installed-files.txt

[...] ../pandora/keys.pyc ../pandora/connection.pyc ../../../../pandora/crypt_key_input.h ../../../../pandora/crypt_key_output.h ./ top_level.txt [...]

$ ls venv/

bin/ include/ lib/ lib64@ pandora/

02strich commented 12 years ago

Thanks for the information (and very good description), c7f858499d71bee141011f7fd1d7293f0bbf6af0 should have fixed this and I uploaded a new version on PyPi

folz commented 12 years ago

That did it, thanks!