-
- Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Originally reported by: jun66j5 (Bitbucket: jun66j5, GitHub: jun66j5)
CRLFs in setup.py lead failure of installation with setuptools 5.4.1 and Python 2.6 on Ubuntu.
The issue doesn't occur on the following:
- setuptools 5.4.1 and Python 2.7
- setuptools 5.x and Python 2.[67]
- setuptools 4.x and Python 2.[67]
Originally reported in https://groups.google.com/d/topic/trac-users/BPrq-14lFCE.
BTW, I cannot create a new issue with "5.4.1" as version. It seems that the versions don't have "5.4.1" entry.
$ /usr/bin/virtualenv -p /usr/bin/python2.6 /dev/shm/setuptools-5.4.1-2.6 Running virtualenv with interpreter /usr/bin/python2.6 New python executable in /dev/shm/setuptools-5.4.1-2.6/bin/python2.6 Also creating executable in /dev/shm/setuptools-5.4.1-2.6/bin/python Installing distribute.............................................................................................................................................................................................done. Installing pip...............done. $ /dev/shm/setuptools-5.4.1-2.6/bin/pip install --upgrade ~/arc/setuptools/setuptools-5.4.1.tar.gz Unpacking /home/jun66j5/arc/setuptools/setuptools-5.4.1.tar.gz Running setup.py egg_info for package from file:///home/jun66j5/arc/setuptools/setuptools-5.4.1.tar.gz Installing collected packages: distribute Found existing installation: distribute 0.6.24 Uninstalling distribute: Successfully uninstalled distribute Running setup.py install for distribute Installing easy_install script to /dev/shm/setuptools-5.4.1-2.6/bin Installing easy_install-2.6 script to /dev/shm/setuptools-5.4.1-2.6/bin Successfully installed distribute Cleaning up... $ /dev/shm/setuptools-5.4.1-2.6/bin/easy_install ~/arc/Genshi-0.6.tar.gz Processing Genshi-0.6.tar.gz Writing /tmp/easy_install-T1GFEs/Genshi-0.6/setup.cfg Running Genshi-0.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-T1GFEs/Genshi-0.6/egg-dist-tmp-p1mnku /tmp/easy_install-T1GFEs/Genshi-0.6/setup.py:69: DeprecationWarning: Features are deprecated and will be removed in a future version. See http://bitbucket.org/pypa/setuptools/65. Extension('genshi._speedups', ['genshi/_speedups.c']), /usr/lib/python2.6/distutils/core.py:113: DeprecationWarning: Features are deprecated and will be removed in a future version. See http://bitbucket.org/pypa/setuptools/65. _setup_distribution = dist = klass(attrs) warning: no previously-included files found matching 'doc/2000ft.graffle' warning: no previously-included files matching '*' found under directory 'doc/logo.lineform' zip_safe flag not set; analyzing archive contents... Adding Genshi 0.6 to easy-install.pth file Installed /run/shm/setuptools-5.4.1-2.6/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg Processing dependencies for Genshi==0.6 Finished processing dependencies for Genshi==0.6 $ /dev/shm/setuptools-5.4.1-2.6/bin/easy_install ~/arc/Trac-1.0.1.zip Processing Trac-1.0.1.zip Writing /tmp/easy_install-zqmaNl/Trac-1.0.1/setup.cfg Running Trac-1.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-zqmaNl/Trac-1.0.1/egg-dist-tmp-YC0oOp Traceback (most recent call last): File "/dev/shm/setuptools-5.4.1-2.6/bin/easy_install", line 9, in <module> load_entry_point('setuptools==5.4.1', 'console_scripts', 'easy_install')() File "/dev/shm/setuptools-5.4.1-2.6/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 2147, in main lambda: setup( File "/dev/shm/setuptools-5.4.1-2.6/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 2133, in with_ei_usage return f() File "/dev/shm/setuptools-5.4.1-2.6/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 2150, in <lambda> distclass=DistributionWithoutHelpCommands, **kw File "/usr/lib/python2.6/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands self.run_command(cmd) File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command cmd_obj.run() File "/dev/shm/setuptools-5.4.1-2.6/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 370, in run self.easy_install(spec, not self.no_deps) File "/dev/shm/setuptools-5.4.1-2.6/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 594, in easy_install return self.install_item(None, spec, tmpdir, deps, True) File "/dev/shm/setuptools-5.4.1-2.6/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 643, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/dev/shm/setuptools-5.4.1-2.6/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 833, in install_eggs return self.build_and_install(setup_script, setup_base) File "/dev/shm/setuptools-5.4.1-2.6/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 1055, in build_and_install self.run_setup(setup_script, setup_base, args) File "/dev/shm/setuptools-5.4.1-2.6/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 1040, in run_setup run_setup(setup_script, args) File "/dev/shm/setuptools-5.4.1-2.6/lib/python2.6/site-packages/setuptools/sandbox.py", line 63, in run_setup DirectorySandbox(setup_dir).run(runner) File "/dev/shm/setuptools-5.4.1-2.6/lib/python2.6/site-packages/setuptools/sandbox.py", line 109, in run return func() File "/dev/shm/setuptools-5.4.1-2.6/lib/python2.6/site-packages/setuptools/sandbox.py", line 62, in runner _execfile(setup_script, ns) File "/dev/shm/setuptools-5.4.1-2.6/lib/python2.6/site-packages/setuptools/sandbox.py", line 37, in _execfile code = compile(script, filename, 'exec') File "/tmp/easy_install-zqmaNl/Trac-1.0.1/setup.py", line 14 ^ SyntaxError: invalid syntax