patrickdessalle/periscope — pull request #40 by mgaitan (2014-02-01 18:30:03+00:00)
Title: fix setup.py (install was broken)

Import `version` in the `setup.py` requires periscope to be installed. But, of couse, it isn't until setup.py install finish (installing, for example the dependency BeatifulSoup).

Look it yourself:

```
tin@morochita:~/lab$ sudo pip install periscope
[sudo] password for tin:
Downloading/unpacking periscope
Downloading periscope-0.2.4.tar.gz
Running setup.py egg_info for package periscope
Traceback (most recent call last):
File "", line 16, in
File "/tmp/pip_build_root/periscope/setup.py", line 2, in
from periscope import version
File "periscope/__init__.py", line 1, in
from periscope import *
File "periscope/periscope.py", line 38, in
import plugins
File "periscope/plugins/__init__.py", line 20, in
from Subtitulos import Subtitulos
File "periscope/plugins/Subtitulos.py", line 20, in
from BeautifulSoup import BeautifulSoup
ImportError: No module named BeautifulSoup
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 16, in

File "/tmp/pip_build_root/periscope/setup.py", line 2, in

from periscope import version

File "periscope/__init__.py", line 1, in

from periscope import *

File "periscope/periscope.py", line 38, in

import plugins

File "periscope/plugins/__init__.py", line 20, in

from Subtitulos import Subtitulos

File "periscope/plugins/Subtitulos.py", line 20, in

from BeautifulSoup import BeautifulSoup

ImportError: No module named BeautifulSoup
```

This patch simplify the layout because... why we need a silly `version.py` module?