rasguanabana / ytfs

YouTube File System
MIT License
1.1k stars 45 forks source link

Can't install with setup.py because you're importing the whole thing in setup.py #16

Closed vladiibine closed 8 years ago

vladiibine commented 8 years ago

I cloned the project, and hit python setup.py develop, when BAM, this.

Obviously, you're importing in setup.py the version which causes everything to get imported before actually installing the project, and therefore one would have to install all dependencies by hand prior to calling setup.py develop.

I found a nice answer on stack overflow on how to better specify the __version__ attribute http://stackoverflow.com/questions/17583443/what-is-the-correct-way-to-share-package-version-with-setup-py-and-the-package

Traceback (most recent call last):
  File "setup.py", line 2, in <module>
    from ytfs import __version__
  File "/home/3pillar.corp/vlad.ardelean/tmp/clones/ytfs/ytfs/__init__.py", line 1, in <module>
    from .ytfs import __version__
  File "/home/3pillar.corp/vlad.ardelean/tmp/clones/ytfs/ytfs/ytfs.py", line 20, in <module>
    from fuse import FUSE, FuseOSError, Operations
ImportError: No module named 'fuse'

To lazy to submit a PR, but when you (or someone) get(s) to it, it should be a quick fix.

vladiibine commented 8 years ago

Lol, I like your fix :D It's way more creative than my suggestion.