Hi,

I know this discussion is old, but finally I've fixed the issue.
https://bitbucket.org/birkenfeld/sphinx/issue/1226
I had never imagined that `sys.exit()` is invoked when automodule
importing a setup.py.
Now sphinx avoids SystemExit exception and emits warnings without
unexpected termination.

It'll release as Sphinx-1.2.3 and Sphinx-1.3.

If you have a chance, please try the stable branch.
Thanks!
--
Takayuki SHIMIZUKAWA
http://about.me/shimizukawa


2012-02-14 9:59 GMT+09:00 scsi <[email protected]>:
> I have the same issue with this:
> Ubuntu 11.04 64 bit
> virtualenv (I've tried with both sphinx system package  v1.0.7 and one
> installed in virtenv 1.1.2).
>
>  I've chased it down and I think its a bit and it seems to be in the method
> _parse_command_line in the Ubuntu distro of python 2.7
> (/usr/lib/python2.7/distutils/dist.py). I've attached my conf.py for
> reference and my module tree looks like the following
>
> /home/user/test <--- base directory full of python modules
> /home/user/doc/ <--- where sphinx makefile is being run
>
> $ make html
> sphinx-build -b html   . _build/html
> Running Sphinx v1.1.2
> loading pickled environment... done
> building [html]: targets for 6 source files that are out of date
> updating environment: [extensions changed] 6 added, 0 changed, 0 removed
> usage: sphinx-build [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
>    or: sphinx-build --help [cmd1 cmd2 ...]
>    or: sphinx-build --help-commands
>    or: sphinx-build cmd --help
>
> error: option -b not recognized
> make: *** [html] Error 1
>
>
> Also:
>
> $ sphinx-build . _build/html/
> Running Sphinx v1.1.2
> loading pickled environment... done
> No builder selected, using default: html
> building [html]: targets for 6 source files that are out of date
> updating environment: [extensions changed] 6 added, 0 changed, 0 removed
> invalid command name '.'] <one of my module names>
>
>
> Any thoughts you have would be awesome.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sphinx-dev" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/sphinx-dev/-/pTuXO6UFiyEJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/sphinx-dev?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to