[Distutils] buildout/distribute (?) issue with Python 3 on Windows
Reinout van Rees
reinout at vanrees.org
Wed Feb 13 21:16:19 CET 2013
On 13-02-13 12:30, Marius Gedminas wrote:
>> >Full log here:
>> >
>> >http://jenkins.simplistix.co.uk/job/testfixtures-buildout/PYTHON=3.3,label=windows/175/console
>> >
>> >Ideas welcome...
> I think something like this
>
> diff --git a/src/zc/buildout/easy_install.py b/src/zc/buildout/easy_install.py
> index 1c81593..60fab6e 100644
> --- a/src/zc/buildout/easy_install.py
> +++ b/src/zc/buildout/easy_install.py
> @@ -913,6 +913,8 @@ def scripts(reqs, working_set, executable, dest=None,
> #/EGG-INFO/scripts/.
> if dist.metadata_isdir('scripts'):
> for name in dist.metadata_listdir('scripts'):
> + if dist.metadata_isdir(name):
> + continue
> contents = dist.get_metadata('scripts/' + name)
> distutils_scripts.append((name, contents))
> else:
>
> IOW bug in buildout, please file.
Close: "if dist.metadata_isdir('scripts/' + name):"
^^^^^^^^^^^^^
Thanks for this snippet, I would have had to look *much* harder otherwise.
Now the only problem was cooking up a test case. Done in
https://github.com/buildout/buildout/pull/67
Reinout
--
Reinout van Rees http://reinout.vanrees.org/
reinout at vanrees.org http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"
More information about the Distutils-SIG
mailing list