txStatsD doesn't install with pip
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
txStatsD |
New
|
Undecided
|
Unassigned |
Bug Description
This error happens when trying to install with pip:
pip install txstatsd -U
Downloading/
Downloading txStatsD-
Running setup.py egg_info for package txstatsd
package init file 'twisted/
Installing collected packages: txstatsd
Running setup.py install for txstatsd
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: option --single-
Complete output from command /usr/local/
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: option --single-
-------
Command /usr/local/
Storing complete log in /Users/
It looks like the issue is with overriding the command class for install: https:/
When faced with this issue, I used the technique in this SO answer to populate the dropin cache: http://
The problem at hand is that the setup.py mixes distutils (the install command) and setup tools (the rest). pip deduces correctly that the setup tools setup function is called and passes setup tools parameters to it although the *install* command itself is still from distutils.
There are three possible solutions:
- Stop supporting distutils altogether (my favorite option, it’s close to 2014 after all).
- Use consistently distutils by ripping out the try: import block.
- Use the proper way for expanding setuptools by using its install command for cache rebuilding.
If you tell me which one you prefer and would consider a fairly soonish release, I’m happy to contribute code. As it stands right now, I’d have to write my own txstatsd client which I’d find rather unfortunate and would prefer to spend my time at fixing what’s there.