Windows as development platform

31 views
Skip to first unread message

Den Untevskiy

unread,
Apr 14, 2014, 1:23:32 AM4/14/14
to sphin...@googlegroups.com
Hi,

Does anyone expect the subject? Is its support an intention or is it abandoned?

I propose a little enhance for at least `make test` could be run on windows:

@@ -49,10 +49,10 @@
 endif
 
 test: build
- @cd tests; $(PYTHON) run.py -d -m '^[tT]est' $(TEST)
+ @cd tests && $(PYTHON) run.py -d -m "^[tT]est" $(TEST)
 
 covertest: build
- @cd tests; $(PYTHON) run.py -d -m '^[tT]est' --with-coverage \
+ @cd tests && $(PYTHON) run.py -d -m "^[tT]est" --with-coverage \
  --cover-package=sphinx $(TEST)
 
 build:


Should this be pull-requested into default branch or is it useless?

Need a point of core developer.

Georg Brandl

unread,
Apr 14, 2014, 2:35:37 AM4/14/14
to sphin...@googlegroups.com
Am 14.04.2014 07:23, schrieb Den Untevskiy:
> Hi,
>
> Does anyone expect the subject? Is its support an intention or is it abandoned?
>
> I propose a little enhance for at least `make test` could be run on windows:
>
> @@ -49,10 +49,10 @@
> endif
>
> test: build
> -@cd tests; $(PYTHON) run.py -d -m '^[tT]est' $(TEST)
> +@cd tests && $(PYTHON) run.py -d -m "^[tT]est" $(TEST)
>
> covertest: build
> -@cd tests; $(PYTHON) run.py -d -m '^[tT]est' --with-coverage \
> +@cd tests && $(PYTHON) run.py -d -m "^[tT]est" --with-coverage \
> --cover-package=sphinx $(TEST)
>

Hi Den,

since I don't use Windows for developing, I just accept patches from people
who tell me what they would need for it.

In this case, I'm a bit puzzled: I guess you are running mingw or cygwin
in order to use the Makefile? But it seems strange that its shell doesn't
support ";"?

cheers,
Georg

Den Untevskiy

unread,
Apr 14, 2014, 4:40:40 AM4/14/14
to sphin...@googlegroups.com
Well, many excuses for not knowing the tool one work with.

I had neither heard that minGW is supplied with [shell](http://www.mingw.org/wiki/MSYS) nor searched on this topic directly. Just installed minGW yesterday to have `make` under windows.

All written previously was regarding native `cmd` shell.

Thanks, Georg. The question is now shrinked to the fact that non-ascii path tests are broken under windows, but that'll be discussed at respective [issue #227](https://bitbucket.org/birkenfeld/sphinx/issue/227/sphinx-doesnt-work-if-docs-are-in-a-non).



--
You received this message because you are subscribed to a topic in the Google Groups "sphinx-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sphinx-dev/2Pgv3E-9I1A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sphinx-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
undefined

Gilberto dos Santos Alves

unread,
Apr 14, 2014, 10:00:57 AM4/14/14
to sphin...@googlegroups.com
What windows code page are you using? Cp-1250 or other? What version window. Pgms? I use for tests winxp. Win7 (ultimatez) 32 and 64bits. For links or path or env that have spaces or nonascii put then enclose by PATH="C:\são paulo\app" see yor keybord layout too.
Regards!
+55(11)9-8646-5049
São Paulo - SP - Brasil
Dispositivo Móvel Symbian

-mensag. original-
Assunto: Re: Windows as development platform
De: Den Untevskiy <d.unt...@gmail.com>
Data: 14-04-2014 05:40
You received this message because you are subscribed to the Google Groups "sphinx-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-dev+...@googlegroups.com.

Den Untevskiy

unread,
Apr 14, 2014, 7:53:17 PM4/14/14
to sphin...@googlegroups.com, Gilberto dos Santos Alves
I have 2 non-ascii paths tests failure at 6204298faae7 change of stable branch in two environments:
  1. Platform: Windows 7 enterprise 32-bit
    Python: CPython 2.7.3
    Fork path: C:\proj_python\sphinx (no spaces, no non-ascii)
    Env path: C:\env\sphinx (no spaces, no non-ascii)
    >>> sys.getdefaultencoding()
    'ascii'
    >>> locale.getpreferredencoding()
    'cp1251'
    >>> sys.stdout.encoding()
    'cp866'
    >>> sys.getfilesystemencoding()
    'mbcs'
  2. Platform: Windows 7 professional 64-bit
    Python: CPython 2.7.6
    Fork path: D:\projects\python\sphinx (no spaces, no non-ascii)
    Env path: C:\env\sphinx 
    (no spaces, no non-ascii)
I'll provide the REPL output for the second environment later, but suppose there would be no difference.

The `make test` output with failures is presented in the [comment to the issue 227](https://bitbucket.org/birkenfeld/sphinx/issue/227/sphinx-doesnt-work-if-docs-are-in-a-non#comment-9648687).

вторник, 15 апреля 2014 г., 1:00:57 UTC+11 пользователь gilberto dos santos alves написал:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages