Hi Mike,

I've integrated your patch, thx ! (and sorry for the late answer)

On 28 juin 14:41, Mike Müller wrote:
> On Windows the call to 2to3 fails with OSError
> "System cannot find specified file".
> 
> Tested version 0.59.1 and trunk
> 
> # HG changeset patch
> # User Mike Mueller <mmueller>
> # Date 1372421702 -7200
> # Node ID 4b62304b2b2b7fc4dd9139018f2ec8a1a2bd939f
> # Parent  33bdf91f6bcc60675e5b008635ae702af05ba944
> Fixed: Install fails on Windows with Python 3.3. Calling subprocess with
> `shell=True` works.
> 
> diff --git a/setup.py b/setup.py
> --- a/setup.py
> +++ b/setup.py
> @@ -140,8 +140,10 @@
>                  if sys.version_info >= (3, 0):
>                      # process manually python file in include_dirs (test 
> data)
>                      from subprocess import check_call
> -                    print('running 2to3 on', dest) # brackets are NOT 
> optional
> here for py3k compat
> -                    check_call(['2to3', '-wn', dest])
> +                    # brackets are NOT optional here for py3k compat
> +                    print('running 2to3 on', dest)
> +                    # Needs `shell=True` to run on Windows.
> +                    check_call(['2to3', '-wn', dest], shell=True)
> 
> 
>  def install(**kwargs):
> 
> The same patch should fix logilab-astng-0.24.3 too.
> _______________________________________________
> Python-Projects mailing list
> Python-Projects@lists.logilab.org
> http://lists.logilab.org/mailman/listinfo/python-projects
> 

-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to