Support building media with parallel-installed Django
Review Request #5690 — 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 reviewboard __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.
Built successfully on Fedora.
- Change Summary:
-
Addresses the earlier review comment and stores the version in a single place
- Summary:
-
Support building with parallel-installed DjangoSupport building media with parallel-installed Django
- Description:
-
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 doesn't get handled automatically by setuptools because this script is invoked directly via sys.executable() in BuildMedia().
~ This patch adds a new shared dependencies.py file in the root path
+ that is imported by both setup.py and build-media.py to ensure that + they are both relying on the same version of Django. ~ Note: it's safe to use the generic >1.4,<1.5 approach here because setuptools for the rest of the build has already guaranteed the minor 1.4 version.
~ This doesn't get handled automatically by setuptools because this
+ script is invoked directly via sys.executable() in BuildMedia(). - Commit:
-
a4bb4ff84f4d24f5dea0b700573d07158440874e391756bb83f614aa4d31851bfaadcab1c79585eb
- Description:
-
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 shared dependencies.py file in the root path
~ 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 patch adds a new variable in the reviewboard __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(). - Commit:
-
391756bb83f614aa4d31851bfaadcab1c79585eb0d810c9e861f4666d668c0e75de76c60506afd52