Reintroduce use of setup_requirements writer

#119 Merged at 4740dec
Repository
Deleted repository
Branch
default (8bff4399a7af)
Repository
setuptools
Branch
default
Author
  1. Richard Ipsum
Reviewers
Description

Hi,

This request reintroduces the change that was removed by d6e6115b17d4, I ran a hacked ez_setup.py in a virtualenv to be certain this doesn't break upgrades as it did before (issue #314) and ez_setup.py completed successfully.

Thanks again, Richard Ipsum

Comments (1)

  1. Zachary Roadhouse

    I'm running into a similar issue to what was reported in issue #314 when I attempt to create a virtualenv using an existing server after 12.4 was released.

    $ virtualenv -p $(which python2.7) temp
    Running virtualenv with interpreter /usr/bin/python2.7
    New python executable in temp/bin/python2.7
    Also creating executable in temp/bin/python
    Installing setuptools.........c.......................................
      Complete output from command /home/zroadhouse/temp/bin/python2.7 -c "#!python
    \"\"\"Bootstra...sys.argv[1:])
    
    
    
    
    
    
    " --always-copy -U setuptools:
      Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
    Searching for setuptools
    Reading http://pypi.python.org/simple/setuptools/
    Best match: setuptools 12.4
    Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-12.4.zip#md5=b088ed7a43a93a1fd1fcabdf73bfa0bf
    Processing setuptools-12.4.zip
    Running setuptools-12.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-4_EDfL/setuptools-12.4/egg-dist-tmp-pgr3pW
    /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'src_root'
      warnings.warn(msg)
    Traceback (most recent call last):
      File "<string>", line 278, in <module>
      File "<string>", line 213, in main
      File "/home/zroadhouse/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1712, in main
      File "/home/zroadhouse/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage
      File "/home/zroadhouse/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1716, in <lambda>
      File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
        dist.run_commands()
      File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/home/zroadhouse/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 211, in run
      File "/home/zroadhouse/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 446, in easy_install
      File "/home/zroadhouse/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 476, in install_item
      File "/home/zroadhouse/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 655, in install_eggs
      File "/home/zroadhouse/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 930, in build_and_install
      File "/home/zroadhouse/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 919, in run_setup
      File "/home/zroadhouse/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 62, in run_setup
      File "/home/zroadhouse/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 105, in run
      File "/home/zroadhouse/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 64, in <lambda>
      File "setup.py", line 186, in <module>
      File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
        dist.run_commands()
      File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/home/zroadhouse/setuptools-0.6c11-py2.7.egg/setuptools/command/bdist_egg.py", line 167, in run
      File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/home/zroadhouse/setuptools-0.6c11-py2.7.egg/setuptools/command/egg_info.py", line 169, in run
      File "/home/zroadhouse/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1959, in load
    ImportError: <module 'setuptools.command.egg_info' from '/home/zroadhouse/setuptools-0.6c11-py2.7.egg/setuptools/command/egg_info.py'> has no 'write_setup_requirements' attribute
    ----------------------------------------
    ...Installing setuptools...done.
    Traceback (most recent call last):
      File "/usr/local/lib/python2.6/dist-packages/virtualenv.py", line 2577, in <module>
        main()
      File "/usr/local/lib/python2.6/dist-packages/virtualenv.py", line 979, in main
        no_pip=options.no_pip)
      File "/usr/local/lib/python2.6/dist-packages/virtualenv.py", line 1091, in create_environment
        search_dirs=search_dirs, never_download=never_download)
      File "/usr/local/lib/python2.6/dist-packages/virtualenv.py", line 611, in install_setuptools
        search_dirs=search_dirs, never_download=never_download)
      File "/usr/local/lib/python2.6/dist-packages/virtualenv.py", line 583, in _install_req
        cwd=cwd)
      File "/usr/local/lib/python2.6/dist-packages/virtualenv.py", line 1057, in call_subprocess
        % (cmd_desc, proc.returncode))
    OSError: Command /home/zroadhouse/temp/bin/python2.7 -c "#!python
    \"\"\"Bootstra...sys.argv[1:])
    
    
    
    
    
    
    " --always-copy -U setuptools failed with error code 1