google-code-export / django-page-cms

Automatically exported from code.google.com/p/django-page-cms
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

setup on windows produces ValueError: path 'pages/' cannot end with '/' error #220

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. on Windows: pip install django-page-cms

What is the expected output? install django-page-cms

What do you see instead? Error: 
Traceback (most recent call last):

  File "<string>", line 14, in <module>
  File "C:\Users\Ed\build\django-page-cms\setup.py", line 63, in <module>
    'Topic :: Internet :: WWW/HTTP :: Site Management',
  File "C:\Python26\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\Python26\lib\distutils\dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
    cmd_obj.run()
  File "<string>", line 12, in replacement_run
  File "C:\Python26\lib\site-packages\setuptools\command\egg_info.py", line 252, in find_sources
    mm.run()
  File "C:\Python26\lib\site-packages\setuptools\command\egg_info.py", line 308, in run
    self.read_template()
  File "C:\Python26\lib\site-packages\setuptools\command\sdist.py", line 157, in read_template
    _sdist.read_template(self)
  File "C:\Python26\lib\distutils\command\sdist.py", line 336, in read_template
    self.filelist.process_template_line(line)
  File "C:\Python26\lib\distutils\filelist.py", line 129, in process_template_line
    (action, patterns, dir, dir_pattern) = self._parse_template_line(line)
  File "C:\Python26\lib\distutils\filelist.py", line 104, in _parse_template_line
    dir = convert_path(words[1])
  File "C:\Python26\lib\distutils\util.py", line 201, in convert_path
    raise ValueError, "path '%s' cannot end with '/'" % pathname
ValueError: path 'pages/' cannot end with '/'

----------------------------------------
Command python setup.py egg_info failed with error code 1

The fix for this is in MANIFEST.in change:
recursive-include pages/ *.css
recursive-include pages/ *.js
recursive-include pages/ *.html

to:
recursive-include pages *.css
recursive-include pages *.js
recursive-include pages *.html

Original issue reported on code.google.com by EdMenen...@gmail.com on 2 Aug 2011 at 8:28