wimleers / fileconveyor

File Conveyor is a daemon written in Python to detect, process and sync files. In particular, it's designed to sync files to CDNs. Amazon S3 and Rackspace Cloud Files, as well as any Origin Pull or (S)FTP Push CDN, are supported. Originally written for my bachelor thesis at Hasselt University in Belgium.
https://wimleers.com/fileconveyor
The Unlicense
340 stars 95 forks source link

Error in setup.py when using Python 2.5 #103

Closed stongo closed 11 years ago

stongo commented 12 years ago

I get this error when I try to install on Centos

/opt/src/fileconveyor/setup.py:14: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
  File "<string>", line 14, in <module>
  File "/opt/src/fileconveyor/setup.py", line 14
    with open(os.path.join(os.path.dirname(__file__), filename)) as f:
            ^
SyntaxError: invalid syntax
b1naryth1ef commented 12 years ago

Upgrade to python 2.6.

stongo commented 12 years ago

Upgrading worked. Maybe documentation needs to be be revised making python 2.6 a requirement instead of 2.5.

wimleers commented 11 years ago

At the top of setup.py, we should just add the following:

from __future__ import with_statement 

Then it'll work on Python 2.5.