pycurl icon indicating copy to clipboard operation
pycurl copied to clipboard

Fixed issue parsing custom options

Open christer opened this issue 12 years ago • 0 comments

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

christer avatar Sep 05 '13 09:09 christer