Support building media with parallel-installed Django
Review Request #5689 — Created April 9, 2014 and submitted
On systems such as Fedora where older versions of Django are
installed as alternative versions (and not directly importable),
we need to ensure that we are importing exactly the right version
of the Django modules.This patch adds a new variable in the djblets __init__.py that is
imported by both setup.py and build-media.py to ensure that they
are both relying on the same version of Django.This doesn't get handled automatically by setuptools because this
script is invoked directly via sys.executable() in BuildMedia().
Successfully built Djblets for Fedora
Change Summary:
Addresses the earlier review comment and stores the version in a single place
Summary: |
|
|||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
|||||||||||||||||||||||||||||||||||||||
Commit: |
|
|||||||||||||||||||||||||||||||||||||||
Diff: |
Revision 2 (+24 -4) |
-
-
dependencies.py (Diff revision 2) Same comment as on the reviewboard change, I'd rather see this in
djblets/__init__.py
-
setup.py (Diff revision 2) Once the django version is in
__init__.py
(and you're adding to this line), could you move this import back up to be next to the other imports?
Change Summary:
Moved the version to init.py and dropped the dependencies.py file.
Description: |
|
||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Commit: |
|
||||||||||||||||||||||||||||||||||||||||||
Diff: |
Revision 3 (+16 -7) |