Lispython/pycurl — pull request #5 by christer (2013-09-05 09:30:46+00:00)
Title: Fixed issue parsing custom options

Setuptools fails on unrecognized options (ex. --curl-config=...)
this patch removes custom options from sys.argv when they are parsed.

Problem presents on setuptools 1.0

Ex.

% python2.7 setup.py build --curl-config=/usr/bin/curl-config
Using /usr/bin/curl-config (libcurl 7.32.0)

Using curl directory: None
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: option --curl-config not recognized