Fixed Error "setup command: package_data must be a dictionary mapping package names to lists of wildcard patterns" for new extensions

Review Request #6704 — Created Dec. 18, 2014 and submitted

Information

Review Board
master
85e8a85...

Reviewers

When a new extension is created using ./contrib/tools/generate_extension.py and running 'python setup.py develop' an error "setup command: package_data must be a dictionary mapping package names to lists of wildcard patterns" occurs. The problem is caused by the setup.py file importing future unicode literals because Python2 setuptools expects a "str" for parsing package_data.

Now the future import has been removed, and the error no longer occurs.

Created a new extension and ran 'python setup.py develop' with no errors.

reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        contrib/tools/templates/extensions/setup.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        contrib/tools/templates/extensions/setup.py
    
    
  2. 
      
david
  1. I'm going to do a slightly different fix and push that.

  2. 
      
justy777
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.0.x (7d14ce7)
Loading...