jeamland/behave — Issue #28: Install fails on Windows
Author: calcium
Created: 2011-12-22 11:47:16+00:00
State: open

Hello,
I tried installing on windows, both using
$ pip install behave

as well as downloading it and doing a
$ python setup install

I get the following error
"""
writing top-level names to behave.egg-info\top_level.txtt.win32\egg\test
writing dependency_links to behave.egg-info\dependency_links.txt\test
reading manifest file 'behave.egg-info\SOURCES.txt'.win32\egg\test
Traceback (most recent call last):.py -> build\bdist.win32\egg\test
File "setup.py", line 41, in > build\bdist.win32\egg\test
"License :: OSI Approved :: BSD License",-> build\bdist.win32\egg\test
File "X:\sdk\Python27\lib\distutils\core.py", line 152, in setup\egg\test
dist.run_commands()__init__.py -> build\bdist.win32\egg\test
File "X:\sdk\Python27\lib\distutils\dist.py", line 953, in run_commandstion.py
self.run_command(cmd)
File "X:\sdk\Python27\lib\distutils\dist.py", line 972, in run_command ansi_es
cmd_obj.run()
.
[deleted]
.
File "X:\sdk\Python27\lib\site-packages\setuptools\command\egg_info.py", line 339, in add_defaults
self.read_manifest()
File "X:\sdk\Python27\lib\distutils\command\sdist.py", line 385, in read_manifest
self.filelist.append(line)
File "X:\sdk\Python27\lib\site-packages\setuptools\command\egg_info.py", line 278, in append
path = convert_path(item)
File "X:\sdk\Python27\lib\distutils\util.py", line 199, in convert_path
raise ValueError, "path '%s' cannot be absolute" % pathname
ValueError: path '/' cannot be absolute
"""

Anyways, it seems that the file behave.egg-info/SOURCES.txt has an
entry of "/" in it.

I deleted this line and it seems to install ok now.

and a test of the following provided no complaints

$ python -c "import behave"

Yay. :-)

Not sure what the "/" actually does but it breaks the install on windows.
(used both the dos cmd prompt as well as cygwin bash).

Just saying...