Fix Djblets packaging on newer versions of Django.

Review Request #7622 — Created Sept. 10, 2015 and submitted

Information

Djblets
master

Reviewers

This brings over some of the other packaging fixes we have from other
projects, in order to enable the Djblets package to be built against
Django 1.7/1.8.

The primary differences are that we must now call django.setup() on
these versions, and we need to call the management command for building
localization files using the proper machinery instead of directly
importing and calling the command's internal functions.

Built the Djblets packages against both Django 1.6 and 1.8, without any
problems.

Description From Last Updated

'is_exe_in_path' imported but unused

reviewbotreviewbot

'pkg_resources' imported but unused

reviewbotreviewbot

Col: 1 E402 module level import not at top of file

reviewbotreviewbot

'pkg_resources' imported but unused

reviewbotreviewbot

Col: 1 E402 module level import not at top of file

reviewbotreviewbot
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        contrib/internal/build-i18n.py
        contrib/internal/build-media.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        contrib/internal/build-i18n.py
        contrib/internal/build-media.py
    
    
  2. contrib/internal/build-i18n.py (Diff revision 1)
     
     
    Show all issues
     'is_exe_in_path' imported but unused
    
  3. contrib/internal/build-media.py (Diff revision 1)
     
     
    Show all issues
     'pkg_resources' imported but unused
    
  4. contrib/internal/build-media.py (Diff revision 1)
     
     
    Show all issues
    Col: 1
     E402 module level import not at top of file
    
  5. 
      
brennie
  1. You have a typo in your description: "to be built" instead of "to be build".

  2. 
      
chipx86
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        contrib/internal/build-i18n.py
        contrib/internal/build-media.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        contrib/internal/build-i18n.py
        contrib/internal/build-media.py
    
    
  2. contrib/internal/build-media.py (Diff revision 2)
     
     
    Show all issues
     'pkg_resources' imported but unused
    
  3. contrib/internal/build-media.py (Diff revision 2)
     
     
    Show all issues
    Col: 1
     E402 module level import not at top of file
    
  4. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-0.10.x (b466903)