Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Apr 2018 10:43:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 227149] Use the www/py-django meta port instead of the www/py-django18 port to move to Django 1.11
Message-ID:  <bug-227149-21822-fCVNvwt2hh@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-227149-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-227149-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227149

--- Comment #6 from Kai <freebsd_ports@k-worx.org> ---
Thank you for the references to the review and PRs. If I understand this ri=
ght
by the given facts/suggestions then the desired approach would be like:

- create a new variable, e.g. DJANGO_DEFAULT in bsd.default-versions.mk=20
- create a new variable, e.g. django:X.XX[+] for USE_PYTHON in Uses/python.=
mk

For the next examples I'll refer to following django ports:

- www/py-django-filer (depends also on graphics/py-django-easy-thumbnails
- graphics/py-django-easy-thumbnails

Let's assume that the new variables above mentioned are implemented into the
ports framework, then the sections for RUN_DEPENDS and USE_PYTHON should be
changed to:

For www/py-django-filer:

> RUN_DEPENDS=3D  ${PYTHON_PKGNAMEPREFIX}django-easy-thumbnails>=3D0:graphi=
cs/py-django-easy-thumbnails@${FLAVOR} \
>              ${PYTHON_PKGNAMEPREFIX}pillow>=3D0:graphics/py-pillow@${FLAV=
OR}
> USE_PYTHON=3D     autoplist distutils django

For graphics/py-django-easy-thumbnails (the RUN_DEPENDS can be removed):

> USE_PYTHON=3D     distutils autoplist django

A bulk run for both py27 and py36 flavors with a Django default version of =
1.11
will produce following Django v1.11 packages:

- py27-django-filer
- py27-django-easy-thumbnails
- py36-django-filer
- py36-django-easy-thumbnails

If I understood the extent to that point correctly, then the following exam=
ple
should fail with DJANGO_VERSION set to 1.11 (as intended):

For port graphics/py-django-easy-thumbnails change USE_PYTHON to:

> USE_PYTHON=3D     distutils autoplist django1.8

This should produce a build error for both py27 and py36 flavors if I'm
correct?

To resolve that issue, one can change USE_PYTHON to:

> USE_PYTHON=3D     distutils autoplist django1.8+

Then the build of both Python flavors should work again.

--
Cheers
Kai

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227149-21822-fCVNvwt2hh>