meg23/python-pants — pull request #1 by jordanmessina (2012-02-03 22:16:33+00:00)
Title: Made some formatting changes in Pants.py and also used pip instead of easy_install

Pip allows installing modules from urls and specifying the versions. Let me know what you think...

I ran a simple test...

Here is my test file:

```python
import Pants
import django
import nltk
import tornado

print "yeahhhhoooo"
```

And here is the output from my terminal when running:

>jordan$ python test.py
>New python executable in /Users/jordan/Desktop/python-pants/bin/python
>Installing setuptools............................done.
>Installing pip.....................done.
>Searching for pip
>Best match: pip 1.0.2
>Processing pip-1.0.2-py2.6.egg
>pip 1.0.2 is already the active version in easy-install.pth
>Installing pip script to /Users/jordan/Desktop/python-pants/bin
>Installing pip-2.6 script to /Users/jordan/Desktop/python-pants/bin

>Using /Users/jordan/Desktop/python-pants/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg
Processing dependencies for pip
Finished processing dependencies for pip
Downloading/unpacking https://github.com/downloads/facebook/tornado/tornado-2.2.tar.gz
Downloading tornado-2.2.tar.gz (330Kb): 330Kb downloaded
Running setup.py egg_info for package from https://github.com/downloads/facebook/tornado/tornado-2.2.tar.gz
warning: no previously-included files matching '_auto2to3*' found anywhere in distribution
Downloading/unpacking nltk
Downloading nltk-2.0.1rc3.tar.gz (951Kb): 951Kb downloaded
Running setup.py egg_info for package nltk
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.21.tar.gz
Extracting in /var/folders/cC/cCJrYnACGxSBN10lpaAKgE+++TI/-Tmp-/tmppYer0_
Now working in /var/folders/cC/cCJrYnACGxSBN10lpaAKgE+++TI/-Tmp-/tmppYer0_/distribute-0.6.21
Building a Distribute egg in /Users/jordan/Desktop/python-pants/build/nltk
/Users/jordan/Desktop/python-pants/build/nltk/distribute-0.6.21-py2.6.egg
warning: no previously-included files matching '*~' found anywhere in distribution
Downloading/unpacking django==1.3
Downloading Django-1.3.tar.gz (6.5Mb): 6.5Mb downloaded
Running setup.py egg_info for package django
Downloading/unpacking PyYAML>=3.10 (from nltk)
Downloading PyYAML-3.10.tar.gz (241Kb): 241Kb downloaded
Running setup.py egg_info for package PyYAML
Installing collected packages: nltk, django, tornado, PyYAML
Running setup.py install for nltk
warning: no previously-included files matching '*~' found anywhere in distribution
Running setup.py install for django
changing mode of build/scripts-2.6/django-admin.py from 644 to 755
changing mode of /Users/jordan/Desktop/python-pants/bin/django-admin.py to 755
Running setup.py install for tornado
warning: no previously-included files matching '_auto2to3*' found anywhere in distribution
Running setup.py install for PyYAML
checking if libyaml is compilable
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c build/temp.macosx-10.6-universal-2.6/check_libyaml.c -o build/temp.macosx-10.6-universal-2.6/check_libyaml.o
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:2:18: error: yaml.h: No such file or directory
build/temp.macosx-10.6-universal-2.6/check_libyaml.c: In function ‘main’:
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:5: error: ‘yaml_parser_t’ undeclared (first use in this function)
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:5: error: (Each undeclared identifier is reported only once
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:5: error: for each function it appears in.)
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:5: error: expected ‘;’ before ‘parser’
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:6: error: ‘yaml_emitter_t’ undeclared (first use in this function)
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:6: error: expected ‘;’ before ‘emitter’
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:8: warning: implicit declaration of function ‘yaml_parser_initialize’
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:8: error: ‘parser’ undeclared (first use in this function)
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:9: warning: implicit declaration of function ‘yaml_parser_delete’
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:11: warning: implicit declaration of function ‘yaml_emitter_initialize’
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:11: error: ‘emitter’ undeclared (first use in this function)
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:12: warning: implicit declaration of function ‘yaml_emitter_delete’
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:2:18: error: yaml.h: No such file or directory
build/temp.macosx-10.6-universal-2.6/check_libyaml.c: In function ‘main’:
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:5: error: ‘yaml_parser_t’ undeclared (first use in this function)
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:5: error: (Each undeclared identifier is reported only once
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:5: error: for each function it appears in.)
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:5: error: expected ‘;’ before ‘parser’
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:6: error: ‘yaml_emitter_t’ undeclared (first use in this function)
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:6: error: expected ‘;’ before ‘emitter’
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:8: warning: implicit declaration of function ‘yaml_parser_initialize’
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:8: error: ‘parser’ undeclared (first use in this function)
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:9: warning: implicit declaration of function ‘yaml_parser_delete’
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:11: warning: implicit declaration of function ‘yaml_emitter_initialize’
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:11: error: ‘emitter’ undeclared (first use in this function)
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:12: warning: implicit declaration of function ‘yaml_emitter_delete’
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:2:18: error: yaml.h: No such file or directory
build/temp.macosx-10.6-universal-2.6/check_libyaml.c: In function ‘main’:
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:5: error: ‘yaml_parser_t’ undeclared (first use in this function)
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:5: error: (Each undeclared identifier is reported only once
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:5: error: for each function it appears in.)
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:5: error: expected ‘;’ before ‘parser’
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:6: error: ‘yaml_emitter_t’ undeclared (first use in this function)
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:6: error: expected ‘;’ before ‘emitter’
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:8: warning: implicit declaration of function ‘yaml_parser_initialize’
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:8: error: ‘parser’ undeclared (first use in this function)
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:9: warning: implicit declaration of function ‘yaml_parser_delete’
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:11: warning: implicit declaration of function ‘yaml_emitter_initialize’
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:11: error: ‘emitter’ undeclared (first use in this function)
build/temp.macosx-10.6-universal-2.6/check_libyaml.c:12: warning: implicit declaration of function ‘yaml_emitter_delete’
lipo: can't open input file: /var/folders/cC/cCJrYnACGxSBN10lpaAKgE+++TI/-Tmp-//ccob7Vx3.out (No such file or directory)

> libyaml is not found or a compiler error: forcing --without-libyaml
> (if libyaml is installed correctly, you may need to
> specify the option --include-dirs or uncomment and
> modify the parameter include_dirs in setup.cfg)
>Successfully installed nltk django tornado PyYAML
>Cleaning up...
>yeahhhhoooo