facebook/huxley — pull request #18 by emanlove (2013-08-22 13:06:51+00:00)
Title: Modified retrieval of version info to fix install issue.

If you try to install huxley within a clean environment, like virtualenv,
then setup tries to import huxley to get version information before the
dependencies are install. This puts setup into a catch-22 as importing
huxley also tries to input uninstalled dependencies.

Sample test code to verify issue and fix ...

$ mkdir install-huxley-test
$ cd install-huxley-test

~/install-huxley-test $ git clone git@github.com:emanlove/huxley.git emanlove

First revert my fix to show issue

~/install-huxley-test $ cd emanlove
~/install-huxley-test/emanlove $ git checkout HEAD^ setup.py
~/install-huxley-test/emanlove $ cd ..

~/install-huxley-test $ virtualenv -p /usr/bin/python2.6 --no-site-packages clean-python-env
~/install-huxley-test $ source ~/clean-python-env/bin/activate
(clean-python-env) ~/install-huxley-test $ cd emanlove
(clean-python-env) ~/install-huxley-test/emanlove $ python setup.py install

(clean-python-env) ~/install-huxley-test/emanlove $ deactivate

Reapply my fix and regenerate clean virtualenv

~/install-huxley-test/emanlove $ git checkout HEAD setup.py
~/install-huxley-test/emanlove $ cd ..

~/install-huxley-test $ virtualenv -p /usr/bin/python2.6 --no-site-packages clean-python-env
~/install-huxley-test $ source ~/clean-python-env/bin/activate
(clean-python-env) ~/install-huxley-test $ cd emanlove
(clean-python-env) ~/install-huxley-test/emanlove $ python setup.py install

Note I am working on signing CLA via directly signing the Word document as I don't have a FB account.