On Wed, Jul 16, 2014 at 3:45 AM, Ryan Ollos <[email protected]> wrote:
> It's strange that it would fail on line 14 because that's a blank line:
> http://trac.edgewall.org/browser/tags/trac-1.0.1/setup.py?marks=14
>
> I guess we should do some testing with this latest version of setuptools you
> are using, 5.4.1:
> https://pypi.python.org/pypi/setuptools
I got the same issue with setuptools 5.4.1. It seems that CRLF in
setup.py leads the issue.
Workaround is one of the following.
1. Use *.tar.gz instead of *.zip
$ easy_install http://download.edgewall.org/trac/Trac-1.0.1.tar.gz
2. Downgrade to setuptools 5.4
$ /dev/shm/setuptools-5.4.1/bin/easy_install --version
setuptools 5.4.1
$ /dev/shm/setuptools-5.4.1/bin/easy_install Trac-1.0.1.zip
Processing Trac-1.0.1.zip
Writing /tmp/easy_install-RV2hlD/Trac-1.0.1/setup.cfg
Running Trac-1.0.1/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-RV2hlD/Trac-1.0.1/egg-dist-tmp-pgDFF1
Traceback (most recent call last):
...
File
"/dev/shm/setuptools-5.4.1/lib/python2.6/site-packages/setuptools/sandbox.py",
line 62, in runner
_execfile(setup_script, ns)
File
"/dev/shm/setuptools-5.4.1/lib/python2.6/site-packages/setuptools/sandbox.py",
line 37, in _execfile
code = compile(script, filename, 'exec')
File "/tmp/easy_install-RV2hlD/Trac-1.0.1/setup.py", line 14
^
SyntaxError: invalid syntax
$ /dev/shm/setuptools-5.4/bin/easy_install --version
setuptools 5.4
$ /dev/shm/setuptools-5.4/bin/easy_install Trac-1.0.1.zip
Processing Trac-1.0.1.zip
Writing /tmp/easy_install-7OB5JW/Trac-1.0.1/setup.cfg
Running Trac-1.0.1/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-7OB5JW/Trac-1.0.1/egg-dist-tmp-pNVq2H
Trac 1.0.1 is already the active version in easy-install.pth
Installing trac-admin script to /dev/shm/setuptools-5.4/bin
Installing tracd script to /dev/shm/setuptools-5.4/bin
Installed
/run/shm/setuptools-5.4/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg
Processing dependencies for Trac==1.0.1
Finished processing dependencies for Trac==1.0.1
$ /dev/shm/setuptools-5.4.1/bin/easy_install --version
setuptools 5.4.1
$ /dev/shm/setuptools-5.4.1/bin/easy_install Trac-1.0.1.tar.gz
Processing Trac-1.0.1.tar.gz
Writing /tmp/easy_install-k36HZf/Trac-1.0.1/setup.cfg
Running Trac-1.0.1/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-k36HZf/Trac-1.0.1/egg-dist-tmp-yg5vj8
Adding Trac 1.0.1 to easy-install.pth file
Installing trac-admin script to /dev/shm/setuptools-5.4.1/bin
Installing tracd script to /dev/shm/setuptools-5.4.1/bin
Installed
/run/shm/setuptools-5.4.1/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg
Processing dependencies for Trac==1.0.1
Finished processing dependencies for Trac==1.0.1
--
Jun Omae <[email protected]> (大前 潤)
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.