← Back to team overview

divmod-dev team mailing list archive

[Bug 794331] Re: pyflakes script not executable on Windows

 

In fact pyflakes doesnt install an executable at all on windows. It must
install a pyflakes.bat with the following content

@echo off
rem Use python to execute the python script having the same name as this batch
rem file, but without any extension, located in the same directory as this
rem batch file
python "%~dpn0" %*


I have 22 other scripts following the same recipe, or you could try to comeone with an pyflakes.exe but I'm sure it's not what you want.

-- 
You received this bug notification because you are a member of Divmod-
dev, which is the registrant for Pyflakes.
https://bugs.launchpad.net/bugs/794331

Title:
  pyflakes script not executable on Windows

Status in Pyflakes:
  New

Bug description:
  Pyflakes script is installed on Windows without any extension. As a
  result, on Windows, it has no file type and cannot be executed from a
  command-line. Consider using setuptools console_script entry_points or
  adding a .py extension when installing under Windows.

  PS C:\Users\jaraco> easy_install pyflakes
  Searching for pyflakes
  Reading http://pypi.python.org/simple/pyflakes/
  Reading http://www.divmod.org/projects/pyflakes
  Reading http://www.divmod.org/trac/wiki/DivmodPyflakes
  Best match: pyflakes 0.4.0
  Downloading http://pypi.python.org/packages/source/p/pyflakes/pyflakes-0.4.0.tar.gz#md5=630a72510aae8758f48cf60e4fa17176
  Processing pyflakes-0.4.0.tar.gz
  Running pyflakes-0.4.0\setup.py -q bdist_egg --dist-dir c:\users\jaraco\appdata\local\temp\easy_install-bi_1bs\pyflakes-0.4.0\egg-dist-tmp-u6vcvn
  hgtools.SubprocessManager('.') could not find files: abort: There is no Mercurial repository here (.hg not found)!
  zip_safe flag not set; analyzing archive contents...
  pyflakes.checker: module references __file__
  pyflakes.checker: module references __path__
  pyflakes.test.test_undefined_names: module references __file__
  pyflakes.test.test_undefined_names: module references __path__
  Adding pyflakes 0.4.0 to easy-install.pth file
  Installing pyflakes script to C:\Python\Scripts

  Installed c:\python\lib\site-packages\pyflakes-0.4.0-py2.7.egg
  Processing dependencies for pyflakes
  Finished processing dependencies for pyflakes

To manage notifications about this bug go to:
https://bugs.launchpad.net/pyflakes/+bug/794331/+subscriptions


References