On Thu, Apr 2, 2009 at 5:36 PM, Rekow Warren
<warren_re...@speedyquick.net> wrote:
> I am a new MacPython (ver 2.6.1) user who has downloaded the "PyUSB" module,
> but am unclear about how to make it available for use in a program. Included
> among the downloaded files is 'setup.py' (and 'setup.pyc'). Running
> 'setup.py' via IDLE yields the following error msg:
> ---
> Traceback (most recent call last):
>  File "/Applications/Python 2.6/pyusb-0.4.1/setup.py", line 62, in <module>
>    ext_modules = [usbmodule])
>  File
> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py",
> line 140, in setup
>    raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg
> SystemExit: 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: no commands supplied
> ---
> It seemed that 'setup.py' should be run in order to access functions in the
> PyUSB module, but perhaps I misunderstand the process. It would be
> appreciated if someone could suggest a related reference to read.

Use the command suggested in the error message:
setup.py --help-commands

You have to give setup.py a command argument; it cannot be run without
any arguments. That command should give you a list and explanation
from which you can figure out which command you want.

Cheers,
Chris

-- 
I have a blog:
http://blog.rebertia.com
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to