Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Not sure if bug, but buildout fails to install a package with \r\n end of line characters. #130

@benwah

Description

@benwah

Python version: 2.6.5

Develop: '[...]/downloads/sorl-thumbnail'
Traceback (most recent call last):
  File "/tmp/tmpD5YZcm", line 13, in <module>
    exec(compile(open('[...]/downloads/sorl-thumbnail/setup.py').read(), '[...]/downloads/sorl-thumbnail/setup.py', 'exec'))
  File "[...]/downloads/sorl-thumbnail/setup.py", line 2
    from setuptools import setup, find_packages
                                               ^
SyntaxError: invalid syntax

How I fixed it:

(In buildout 2.1.0), zc/buildout/easy_install.py, line 1251

exec(compile(open(%(setup)r).read(), %(setup)r, 'exec'))

Changed to:

exec(compile(open(%(setup)r).read().replace('\\r\\n', '\\n'), %(setup)r, 'exec'))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions