[CCC DEV] occbuild on windows + split_options (really shlex.split)
cljacobsen at gmail.com
cljacobsen at gmail.com
Wed Jul 14 16:25:18 BST 2010
On 14 July 2010 03:48, Adam Sampson <ats at offog.org> wrote:
> "cljacobsen at gmail.com" <cljacobsen at gmail.com> writes:
>
>> Is there ever a time when the path names would need splitting?
>
> It's because the environment variables can contain options too ("export
> KROC='kroc -di'"). The right fix is probably to make split_options use
> something other than shlex.split() on Windows, I guess.
>
> If you can assume Python 2.6, shlex.split has a "posix" parameter that,
> when set to False, makes it behave more like the Windows shell...
I think we can say that on Windows we can assume Python 2.6, since we
are 'compiling' occbuild into an exe using py2exe and Python 2.6. I'm
also assuming that not many Windows users are going to want to compile
the project from source (and even fewer with an older version of
python than 2.6).
I'll make a test in split_options that tests for windows and passes
posix=true/false as appropriate.
Cheers,
Christian
More information about the developers
mailing list