Skip to content

Commit a94cbac

Browse files
committed
Merge pull request django-cms#4645 from mkoistinen/setup_dependency_link_for_formtools
Add dependency_links entry for django-formtools...
2 parents f87f8fd + bf2e336 commit a94cbac

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

setup.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,23 @@
3434
'djangocms-admin-style',
3535
]
3636

37+
#
38+
# NOTE: divio/django-formtools is IDENTICAL to django/django-formtools except
39+
# that its Django requirement has been relaxed to >=Django>=1.6. This is because
40+
# this version of django CMS supports Django 1.6+. Internally, CMS will use
41+
# django.contrib.formtools when available, then look for the external version if
42+
# required. Unfortunately, SetupTools doesn't allow use to load the external
43+
# library when using Django 1.7+ only.
44+
#
45+
# Further note that dependency links do not work by default. Current versions of
46+
# Pip support it with the flag `--process-dependency-links`
47+
#
48+
# Remove these machinations in CMS v3.3 when Django 1.6 support is dropped.
49+
#
50+
DEPENDENCY_LINKS = [
51+
"https://github.com/divio/django-formtools/archive/master.zip#egg=django-formtools",
52+
]
53+
3754
setup(
3855
author='Patrick Lauber',
3956
author_email='[email protected]',
@@ -46,6 +63,7 @@
4663
platforms=['OS Independent'],
4764
classifiers=CLASSIFIERS,
4865
install_requires=INSTALL_REQUIREMENTS,
66+
dependency_links=DEPENDENCY_LINKS,
4967
extras_require={
5068
'south': ['south>=1.0.0'],
5169
},

0 commit comments

Comments
 (0)