The traceback is:
$ tox -e py34
py34 create: /Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34
py34 installdeps: -r/Users/alex_gaynor/projects/openstack-swiftclient/requirements.txt, -r/Users/alex_gaynor/projects/openstack-swiftclient/test-requirements.txt
py34 develop-inst: /Users/alex_gaynor/projects/openstack-swiftclient
ERROR: invocation failed, logfile: /Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/log/py34-2.log
ERROR: actionid=py34
msg=developpkg
cmdargs=[local('/Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/bin/pip'), 'install', '-U', '-e', '/Users/alex_gaynor/projects/openstack-swiftclient']
env={'PYTHONIOENCODING': 'utf_8', 'VERSIONER_PYTHON_PREFER_32_BIT': 'no', '__fish_bin_dir': '/usr/local/Cellar/fish/2.1.0/bin', 'LOGNAME': 'alex_gaynor', 'USER': 'alex_gaynor', 'HOME': '/Users/alex_gaynor', 'PATH': '/Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/bin:/Users/alex_gaynor/.virtualenvs/openstack-swiftclient/bin:/Users/alex_gaynor/Library/Python/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin', 'DISPLAY': '/tmp/launch-7aoeyv/org.macosforge.xquartz:0', 'TERM_PROGRAM': 'iTerm.app', 'LANG': 'en_US.UTF-8', 'TERM': 'xterm-256color', 'Apple_PubSub_Socket_Render': '/tmp/launch-mqhTzR/Render', 'COLORFGBG': '7;0', 'VERSIONER_PYTHON_VERSION': '2.7', 'SHLVL': '1', 'SECURITYSESSIONID': '186a4', 'ITERM_SESSION_ID': 'w0t6p0', 'EDITOR': 'subl -w', 'SSH_AUTH_SOCK': '/tmp/launch-9Xiues/Listeners', 'VIRTUAL_ENV': '/Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34', '__fish_sysconfdir': '/usr/local/Cellar/fish/2.1.0/etc/fish', 'SHELL': '/usr/local/bin/fish', 'ITERM_PROFILE': 'Default', 'TMPDIR': '/var/folders/fm/57qdjdrx6gzgcq1zlym0xwfc0000gn/T/', '__fish_datadir': '/usr/local/Cellar/fish/2.1.0/share/fish', '__CF_USER_TEXT_ENCODING': '0x1F5:0:0', 'PWD': '/Users/alex_gaynor/projects/openstack-swiftclient', '__CHECKFIX1436934': '1', '__fish_help_dir': '/usr/local/Cellar/fish/2.1.0/share/doc/fish', 'COMMAND_MODE': 'unix2003'}
Obtaining file:///Users/alex_gaynor/projects/openstack-swiftclient
Running setup.py (path:/Users/alex_gaynor/projects/openstack-swiftclient/setup.py) egg_info for package from file:///Users/alex_gaynor/projects/openstack-swiftclient
[pbr] Reusing existing SOURCES.txt
Requirement already up-to-date: requests>=1.1 in ./.tox/py34/lib/python3.4/site-packages (from python-swiftclient==2.1.0.9.g3d0de79)
Requirement already up-to-date: simplejson>=2.0.9 in ./.tox/py34/lib/python3.4/site-packages (from python-swiftclient==2.1.0.9.g3d0de79)
Requirement already up-to-date: six>=1.5.2 in ./.tox/py34/lib/python3.4/site-packages (from python-swiftclient==2.1.0.9.g3d0de79)
Installing collected packages: python-swiftclient
Running setup.py develop for python-swiftclient
[pbr] Reusing existing SOURCES.txt
Creating /Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/lib/python3.4/site-packages/python-swiftclient.egg-link (link to .)
Adding python-swiftclient 2.1.0.9.g3d0de79 to easy-install.pth file
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/alex_gaynor/projects/openstack-swiftclient/setup.py", line 22, in <module>
pbr=True)
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/lib/python3.4/site-packages/setuptools/command/develop.py", line 29, in run
self.install_for_development()
File "/Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/lib/python3.4/site-packages/setuptools/command/develop.py", line 131, in install_for_development
self.process_distribution(None, self.dist, not self.no_deps)
File "/Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 659, in process_distribution
self.install_egg_scripts(dist)
File "/Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/lib/python3.4/site-packages/setuptools/command/develop.py", line 168, in install_egg_scripts
self.install_script(dist, script_name, script_text, script_path)
File "/Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 762, in install_script
script_text = (get_script_header(script_text) +
File "/Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 1555, in get_script_header
first = (script_text+'\n').splitlines()[0]
TypeError: can't concat bytes to str
Complete output from command /Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/bin/python3.4 -c "import setuptools, tokenize; __file__='/Users/alex_gaynor/projects/openstack-swiftclient/setup.py'; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps:
running develop
running egg_info
writing dependency_links to python_swiftclient.egg-info/dependency_links.txt
writing top-level names to python_swiftclient.egg-info/top_level.txt
writing requirements to python_swiftclient.egg-info/requires.txt
writing python_swiftclient.egg-info/PKG-INFO
[pbr] Reusing existing SOURCES.txt
running build_ext
Creating /Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/lib/python3.4/site-packages/python-swiftclient.egg-link (link to .)
Adding python-swiftclient 2.1.0.9.g3d0de79 to easy-install.pth file
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/alex_gaynor/projects/openstack-swiftclient/setup.py", line 22, in <module>
pbr=True)
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/lib/python3.4/site-packages/setuptools/command/develop.py", line 29, in run
self.install_for_development()
File "/Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/lib/python3.4/site-packages/setuptools/command/develop.py", line 131, in install_for_development
self.process_distribution(None, self.dist, not self.no_deps)
File "/Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 659, in process_distribution
self.install_egg_scripts(dist)
File "/Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/lib/python3.4/site-packages/setuptools/command/develop.py", line 168, in install_egg_scripts
self.install_script(dist, script_name, script_text, script_path)
File "/Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 762, in install_script
script_text = (get_script_header(script_text) +
File "/Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 1555, in get_script_header
first = (script_text+'\n').splitlines()[0]
TypeError: can't concat bytes to str
----------------------------------------
Cleaning up...
Command /Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/bin/python3.4 -c "import setuptools, tokenize; __file__='/Users/alex_gaynor/projects/openstack-swiftclient/setup.py'; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps failed with error code 1 in /Users/alex_gaynor/projects/openstack-swiftclient
Storing debug log for failure in /Users/alex_gaynor/.pip/pip.log
__________________________________________________________ summary ___________________________________________________________
ERROR: py34: InvocationError: /Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/bin/pip install -U -e /Users/alex_gaynor/projects/openstack-swiftclient (see /Users/alex_gaynor/projects/openstack-swiftclient/.tox/py34/log/py34-2.log)
Extensive bisection whittled this down to being reproducible with:
git clone git://git. openstack. org/openstack/ python- swiftclient. git
cd python-swiftclient
virtualenv -p python3.3 foo
./foo/bin/pip install -U -r requirements.txt setuptools==4.0.1
. foo/bin/activate
python setup.py develop
Note however that with setuptools 3.8 and earlier this does not break. Cursory testing suggests the behavior demonstrated here started with the setuptools 4.0 release.