feincms/feincms-cleanse — pull request #4 by frankoid (2012-08-15 17:51:08+00:00)
Title: Allow feincms-cleanse and dependencies to be installed in one pass with "pip install -r requirements.txt"

Without this change, if you run "pip install -r requirements.txt" on an empty virtualenv where requirements.txt contains
```
lxml==2.3.5
BeautifulSoup==3.2.1
feincms-cleanse==1.0.0
```

Then you get an error. This change fixes that error by not importing feincms_cleanse (which itself imports BeautifulSoup and lxml) from setup.py.

Here is the error I was getting before this change:
```
(feincms-cleanse-test)francis@murr tmp $ pip install -r requirements.txt
Downloading/unpacking lxml==2.3.5 (from -r requirements.txt (line 1))
Using download cache from /Users/francis/tmp/pip_download_cache/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fl%2Flxml%2Flxml-2.3.5.tar.gz
Running setup.py egg_info for package lxml
Building lxml version 2.3.5.
Building without Cython.
Using build configuration of libxslt 1.1.26
Building against libxml2/libxslt in the following directory: /opt/local/lib

warning: no previously-included files found matching '*.py'
Downloading/unpacking BeautifulSoup==3.2.1 (from -r requirements.txt (line 2))
Using download cache from /Users/francis/tmp/pip_download_cache/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FB%2FBeautifulSoup%2FBeautifulSoup-3.2.1.tar.gz
Running setup.py egg_info for package BeautifulSoup

Downloading/unpacking feincms-cleanse==1.0.0 (from -r requirements.txt (line 3))
Using download cache from /Users/francis/tmp/pip_download_cache/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Ff%2Ffeincms-cleanse%2Ffeincms-cleanse-1.0.0.tar.gz
Running setup.py egg_info for package feincms-cleanse
Traceback (most recent call last):
File "", line 14, in
File "/Users/francis/env/feincms-cleanse-test/build/feincms-cleanse/setup.py", line 10, in
version=__import__('feincms_cleanse').__version__,
File "feincms_cleanse/__init__.py", line 4, 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 14, in

File "/Users/francis/env/feincms-cleanse-test/build/feincms-cleanse/setup.py", line 10, in

version=__import__('feincms_cleanse').__version__,

File "feincms_cleanse/__init__.py", line 4, in

from BeautifulSoup import BeautifulSoup

ImportError: No module named BeautifulSoup

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /Users/francis/env/feincms-cleanse-test/build/feincms-cleanse
Storing complete log in /Users/francis/.pip/pip.log
(feincms-cleanse-test)francis@murr tmp
```