1. Tarek Ziadé
  2. distribute
Issue #364 new

Bootstrap install fails under Python 3.3

Nikolaus Rath
created an issue

When running under Python 3.3, using the bootstrap installer generates some bogus warnings about unknown distribution options:

$ python3.3 setup.py  --help
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.36.tar.gz
Extracting in /tmp/tmp6olbaf
Now working in /tmp/tmp6olbaf/distribute-0.6.36
Building a Distribute egg in /home/nikratio/in-progress/distribute-bug
creating build
creating build/src
[tons of stuff deleted]
root: Generating grammar tables from /usr/lib/python3.3/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python3.3/lib2to3/PatternGrammar.txt
/home/nikratio/in-progress/distribute-bug/distribute-0.6.36-py3.3.egg
/usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown distribution option: 'entry_points'
  warnings.warn(msg)
/usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
/usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown distribution option: 'zip_safe'
  warnings.warn(msg)
/usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown distribution option: 'tests_require'
  warnings.warn(msg)
Common commands: (see '--help-commands' for more)

This does not happen when distribute is already installed.

Comments (3)

  1. Nikolaus Rath reporter

    Turns out it's actually worse than that: it seems that distribute is not getting used at all in this case:

    $ python3.3 setup.py test
    /usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown distribution option: 'entry_points'
      warnings.warn(msg)
    /usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown distribution option: 'tests_require'
      warnings.warn(msg)
    /usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown distribution option: 'test_suite'
      warnings.warn(msg)
    /usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown distribution option: 'zip_safe'
      warnings.warn(msg)
    usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: setup.py --help [cmd1 cmd2 ...]
       or: setup.py --help-commands
       or: setup.py cmd --help
    
    error: invalid command 'test'
    

    In contrast:

    $ PYTHONPATH=distribute-0.6.36-py3.3.egg python3.3 setup.py test
    running test
    Checking .pth file support in .
    /usr/bin/python3.3 -E -c pass
    Searching for pytest
    Reading http://pypi.python.org/simple/pytest/
    Best match: pytest 2.3.4
    [....]
    
  2. Log in to comment